Function at 0x4031d0
Capabilities:
Check if file exists
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x45302c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x468400]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0x1cc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1dc]
lea eax, [esp + 0x34]
mov edi, ecx
push eax
mov dword [esp + 0x34], edi
call fcn.00403b90
xor ebx, ebx
mov dword [esp + 0x1d4], ebx
cmp dword [ebp + 0x18], 0x10
lea esi, [ebp + 4]
jb 0x403238
mov eax, dword [esi]
jmp 0x40323a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x403426
cmp dword [ebp + 0x18], 0x10
jb 0x403252
mov esi, dword [esi]
push esi
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0x45aaeb
push str.wdloadername
push str.wdcofig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xbc]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403290
sub eax, edx
push eax
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404b10
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
add edi, 0x1e0
push eax
mov ecx, edi
mov byte [esp + 0x1e0], 1
call fcn.004043f0
mov esi, 0x10
mov byte [esp + 0x1d4], bl
cmp dword [esp + 0x2c], esi
jb 0x4032e7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00419a12
add esp, 4
mov ecx, 0x45aaeb
call fcn.004057b0
test al, al
jne 0x40332e
lea ecx, [esp + 0x88]
mov dword [esp + 0x1d4], 0xffffffff
call fcn.00403c30
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
mov al, 1
jmp 0x40355c
push 0x45b094
push ecx
push ebp
push ecx
lea eax, [esp + 0x4c]
push 0x45b03c
push eax
call fcn.00405260
add esp, 0xc
push eax
call fcn.00405490
add esp, 0xc
push eax
call fcn.00405260
add esp, 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x34]
call fcn.00403cc0
cmp dword [eax + 0x18], esi
jb 0x403371
mov eax, dword [eax + 4]
jmp 0x403374
add eax, 4
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jne 0x403380
xor ecx, ecx
jmp 0x403383
mov ecx, dword [ecx + 0x20]
push esi
push 0x45ac14
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0x2c], esi
jb 0x4033b2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00419a12
add esp, 4
push ebx
push 0x45aaeb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404b10
lea esi, [esp + 0x40]
mov byte [esp + 0x1d4], 2
call fcn.004049b0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x4033f1
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], ebx
cmp eax, ebx
je 0x403409
push ecx
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.00404e70
cmp dword [esp + 0x2c], 0x10
jb 0x403528
mov edx, dword [esp + 0x18]
push edx
call fcn.00419a12
add esp, 4
jmp 0x403528
push 0x45b058
push ecx
push ebp
push ecx
lea eax, [esp + 0x4c]
push 0x45b064
push eax
call fcn.00405260
add esp, 0xc
push eax
call fcn.00405490
add esp, 0xc
push eax
call fcn.00405260
add esp, 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x34]
call fcn.00403cc0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x40346e
mov eax, dword [eax + 4]
jmp 0x403471
add eax, 4
cmp edi, ebx
jne 0x403479
xor ecx, ecx
jmp 0x40347c
mov ecx, dword [edi + 0x20]
push ebp
push 0x45ac14
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0x2c], ebp
jb 0x4034ab
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00419a12
add esp, 4
push ebx
mov edi, 0xf
push 0x45aaeb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404b10
lea esi, [esp + 0x40]
mov byte [esp + 0x1d4], 3
call fcn.004049b0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x4034ea
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], ebx
cmp eax, ebx
je 0x403509
push ecx
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.00404e70
xor ebx, ebx
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jb 0x40351c
mov edx, dword [esp + 0x18]
push edx
call fcn.00419a12
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x88]
mov dword [esp + 0x1d4], 0xffffffff
call fcn.00403c30
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00436724
add esp, 0x1c4
ret 4