Function at 0x41d7b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcd8
mov eax, dword [0x43d064]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xcd8], ecx
push 0x14
push 0
lea eax, [ebp - 0x444]
push eax
call fcn.00401f60
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x8b8]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41d800
xor eax, eax
jmp 0x41dcc2
mov eax, dword [ebp - 0xcd8]
add eax, 0x4808
push eax
push 0x104
lea ecx, [ebp - 0xcc8]
push ecx
push 0x4387f4
push 0x438804
mov edx, dword [ebp - 0xcd8]
add edx, 0x2bcc
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 6
push str._none_
lea eax, [ebp - 0xcc8]
push eax
call fcn.00402656
add esp, 0xc
test eax, eax
je 0x41d86c
lea ecx, [ebp - 0xcc8]
push ecx
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.004023ae
add esp, 0xc
jmp 0x41d885
push 0x438824
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.004023ae
add esp, 0xc
mov ecx, dword [ebp - 0xcd8]
add ecx, 0x4808
push ecx
push 0x104
lea edx, [ebp - 0xcc8]
push edx
push 0x43883c
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41d8f3
mov edx, dword [ebp - 0xcd8]
add edx, 0x4808
push edx
push 0x104
lea eax, [ebp - 0xcc8]
push eax
push 0x438840
lea ecx, [ebp - 0x8b8]
push ecx
push str.FS_Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x41dcb9
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x460]
push eax
push 0x104
lea ecx, [ebp - 0x670]
push ecx
push 0x104
lea edx, [ebp - 0xac0]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
push 0x104
lea ecx, [ebp - 0x878]
push ecx
push str._s__s__s__s__d__d__x__d__d__x__d__d__x__d__d__x__d__d__x__d__d
lea edx, [ebp - 0xcc8]
push edx
call fcn.0040401a
add esp, 0x6c
mov dword [ebp - 0xccc], eax
xor eax, eax
mov ecx, dword [ebp - 0xcd8]
mov word [ecx + 0x2e2c], ax
xor edx, edx
mov eax, dword [ebp - 0xcd8]
mov word [eax + 0x2e2e], dx
cmp dword [ebp - 0xccc], 4
jne 0x41d9ff
mov ecx, 1
mov edx, dword [ebp - 0xcd8]
mov word [edx + 0x2e2c], cx
mov eax, 1
mov ecx, dword [ebp - 0xcd8]
mov word [ecx + 0x2e2e], ax
jmp 0x41dae7
cmp dword [ebp - 0xccc], 4
jle 0x41dae7
mov edx, dword [ebp - 0xcd8]
mov ax, word [ebp - 0x460]
mov word [edx + 0x2e2c], ax
mov ecx, dword [ebp - 0xcd8]
mov dx, word [ebp - 0x45c]
mov word [ecx + 0x2e2e], dx
cmp dword [ebp - 0xccc], 6
jle 0x41dae7
mov eax, dword [ebp - 0xccc]
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x41dae7
mov dword [ebp - 0xcd0], 0
cmp dword [ebp - 0xcd0], 3
jge 0x41dae7
mov eax, dword [ebp - 0xccc]
sub eax, 6
cdq
mov ecx, 3
idiv ecx
cmp dword [ebp - 0xcd0], eax
jge 0x41dae7
mov edx, dword [ebp - 0xcd8]
mov eax, dword [ebp - 0xcd0]
mov ecx, dword [edx + 0x2e1c]
and ecx, dword [ebp + eax*4 - 0x444]
je 0x41dad3
mov edx, dword [ebp - 0xcd8]
mov eax, dword [ebp - 0xcd0]
mov cx, word [ebp + eax*4 - 0x458]
mov word [edx + 0x2e2c], cx
mov edx, dword [ebp - 0xcd8]
mov eax, dword [ebp - 0xcd0]
mov cx, word [ebp + eax*4 - 0x18]
mov word [edx + 0x2e2e], cx
jmp 0x41dae7
mov edx, dword [ebp - 0xcd0]
add edx, 1
mov dword [ebp - 0xcd0], edx
jmp 0x41da61
cmp dword [ebp - 0xccc], 4
jl 0x41dcb7
push str.evsSLEEP
lea eax, [ebp - 0x430]
push eax
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41db1b
mov dword [ebp - 0x464], 0
jmp 0x41dbdc
push str.evsCOVEROPEN
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41db42
mov dword [ebp - 0x464], 1
jmp 0x41dbdc
push str.evsPAPEREMPTY
lea edx, [ebp - 0x430]
push edx
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41db66
mov dword [ebp - 0x464], 2
jmp 0x41dbdc
push str.evsPAPERJAM
lea eax, [ebp - 0x430]
push eax
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41db8a
mov dword [ebp - 0x464], 3
jmp 0x41dbdc
push str.evsNOTONNER
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41dbae
mov dword [ebp - 0x464], 4
jmp 0x41dbdc
push str.evsTONNERLOW
lea edx, [ebp - 0x430]
push edx
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41dbd2
mov dword [ebp - 0x464], 5
jmp 0x41dbdc
mov dword [ebp - 0x464], 0x20
push 0x12c
mov eax, dword [ebp - 0xcd8]
add eax, 0x3264
push eax
lea ecx, [ebp - 0xac0]
push ecx
mov ecx, dword [ebp - 0xcd8]
add ecx, 0x40c8
call fcn.0042e720
mov dword [ebp - 0xcd4], 0
push str.WARNING
lea edx, [ebp - 0x878]
push edx
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41dc33
mov dword [ebp - 0xcd4], 2
jmp 0x41dc55
push str.INFO
lea eax, [ebp - 0x878]
push eax
call fcn.0040241d
add esp, 8
test eax, eax
jne 0x41dc55
mov dword [ebp - 0xcd4], 1
cmp dword [ebp + 0xc], 0
jne 0x41dc84
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0xac0]
push edx
mov eax, dword [ebp - 0xcd4]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov ecx, dword [ebp - 0xcd8]
call fcn.0041d620
jmp 0x41dcb7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x464]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xcd4]
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x41dcb7
lea eax, [ebp - 0xac0]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004023ae
add esp, 0xc
jmp 0x41dcbd
xor eax, eax
jmp 0x41dcc2
mov eax, 1
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00401f44
mov esp, ebp
pop ebp
ret 0x14