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

Disassembly:
push 0xffffffffffffffff
push 0x45308c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x468400]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e4]
lea eax, [esp + 0x3c]
push eax
mov esi, ecx
call fcn.00403b90
xor ebx, ebx
mov dword [esp + 0x1dc], ebx
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x402e24
mov eax, dword [edi]
jmp 0x402e26
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x403062
cmp dword [esi + 0x18], 0x10
jb 0x402e3e
mov edi, dword [edi]
push edi
push 0x104
lea ecx, [esp + 0xcc]
push ecx
push 0x45aaeb
push str.wdversion
push str.wdcofig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xd0]
push str._d._d._d
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
call fcn.00436a28
add esp, 0x14
cmp eax, 3
jne 0x402f63
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
and eax, 0xff
shl ecx, 8
add eax, ecx
shl eax, 0x10
and edx, 0xffff
add eax, edx
mov dword [ebp + 0x1c0], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
jmp 0x402ee0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ee0
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404b10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x1c4]
mov byte [esp + 0x1e8], 1
call fcn.004043f0
cmp dword [esp + 0x2c], 0x10
jb 0x402f2a
mov edx, dword [esp + 0x18]
push edx
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00403c30
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
mov al, 1
jmp 0x403198
push 0x45b018
push ecx
push esi
push ecx
lea ecx, [esp + 0x54]
push 0x45b03c
push ecx
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 + 0x3c]
call fcn.00403cc0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x402fab
mov eax, dword [eax + 4]
jmp 0x402fae
add eax, 4
cmp ebp, ebx
jne 0x402fb6
xor ecx, ecx
jmp 0x402fb9
mov ecx, dword [ebp + 0x20]
push edi
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], edi
jb 0x402fe8
mov edx, dword [esp + 0x18]
push edx
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 + 0x48]
mov byte [esp + 0x1dc], 2
call fcn.004049b0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x403026
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], ebx
cmp eax, ebx
je 0x403046
push ecx
mov ebx, eax
lea esi, [esp + 0x4c]
call fcn.00404e70
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jb 0x403164
mov eax, dword [esp + 0x18]
push eax
call fcn.00419a12
add esp, 4
jmp 0x403164
push 0x45b058
push ecx
push esi
push ecx
lea ecx, [esp + 0x54]
push 0x45b064
push ecx
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 + 0x3c]
call fcn.00403cc0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x4030aa
mov eax, dword [eax + 4]
jmp 0x4030ad
add eax, 4
cmp ebp, ebx
jne 0x4030b5
xor ecx, ecx
jmp 0x4030b8
mov ecx, dword [ebp + 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 0x4030e7
mov edx, dword [esp + 0x18]
push edx
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 + 0x48]
mov byte [esp + 0x1dc], 3
call fcn.004049b0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x403127
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], ebx
cmp eax, ebx
je 0x403144
push ecx
mov ebx, eax
lea esi, [esp + 0x4c]
call fcn.00404e70
xor ebx, ebx
cmp dword [esp + 0x2c], 0x10
jb 0x403158
mov eax, dword [esp + 0x18]
push eax
call fcn.00419a12
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x90]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00403c30
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00436724
add esp, 0x1cc
ret 4