Function at 0x402540
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4090b8]
sub esp, 0x400
test eax, eax
push ebp
push esi
mov ebp, ecx
jne 0x402861
push edi
lea eax, [esp + 0xc]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax], 0
mov edi, 0x4083e4
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x64], eax
pop edi
je 0x402846
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4083d4
push eax
call esi
mov dword [0x40907c], eax
mov ecx, dword [ebp + 0x64]
push 0x4083c4
push ecx
call esi
mov dword [0x409014], eax
mov edx, dword [ebp + 0x64]
push 0x4083b4
push edx
call esi
mov dword [0x409010], eax
mov eax, dword [ebp + 0x64]
push 0x4083a4
push eax
call esi
mov dword [0x40900c], eax
mov ecx, dword [ebp + 0x64]
push 0x408394
push ecx
call esi
mov dword [0x409008], eax
mov edx, dword [ebp + 0x64]
push 0x408388
push edx
call esi
mov dword [0x409004], eax
mov eax, dword [ebp + 0x64]
push 0x408378
push eax
call esi
mov dword [0x408ffc], eax
mov ecx, dword [ebp + 0x64]
push 0x408370
push ecx
call esi
mov dword [0x408ff8], eax
mov edx, dword [ebp + 0x64]
push 0x408360
push edx
call esi
mov dword [0x408fec], eax
mov eax, dword [ebp + 0x64]
push 0x408354
push eax
call esi
mov dword [fcn.00408ff0], eax
mov ecx, dword [ebp + 0x64]
push 0x408348
push ecx
call esi
mov dword [fcn.00408fe8], eax
mov edx, dword [ebp + 0x64]
push 0x408334
push edx
call esi
mov dword [fcn.00408fe4], eax
mov eax, dword [ebp + 0x64]
push 0x408328
push eax
call esi
mov dword [0x408fdc], eax
mov ecx, dword [ebp + 0x64]
push 0x408314
push ecx
call esi
mov dword [0x408fd4], eax
mov edx, dword [ebp + 0x64]
push 0x408304
push edx
call esi
mov dword [0x408fd0], eax
mov eax, dword [ebp + 0x64]
push 0x4082f8
push eax
call esi
mov dword [0x408fcc], eax
push 0x4082ec
mov ecx, dword [ebp + 0x64]
push ecx
call esi
mov dword [0x408fc8], eax
mov edx, dword [ebp + 0x64]
push 0x4082dc
push edx
call esi
mov dword [0x408fc4], eax
mov eax, dword [ebp + 0x64]
push 0x4082cc
push eax
call esi
mov dword [0x408fc0], eax
mov ecx, dword [ebp + 0x64]
push 0x4082bc
push ecx
call esi
mov dword [0x408fbc], eax
mov edx, dword [ebp + 0x64]
push 0x4082b0
push edx
call esi
mov dword [0x408fb8], eax
mov eax, dword [ebp + 0x64]
push 0x4082a0
push eax
call esi
mov ecx, dword [0x40907c]
mov dword [0x408fb4], eax
test ecx, ecx
je 0x40283f
mov ecx, dword [0x409014]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x409010]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x40900c]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x409008]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x409004]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408ffc]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408ff8]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fec]
test ecx, ecx
je 0x40283f
mov ecx, dword [fcn.00408ff0]
test ecx, ecx
je 0x40283f
mov ecx, dword [fcn.00408fe8]
test ecx, ecx
je 0x40283f
mov ecx, dword [fcn.00408fe4]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fdc]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fd4]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fd0]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fcc]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fc8]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fc4]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fc0]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fbc]
test ecx, ecx
je 0x40283f
mov ecx, dword [0x408fb8]
test ecx, ecx
je 0x40283f
test eax, eax
je 0x40283f
mov eax, 1
pop esi
mov dword [0x4090b8], eax
mov dword [0x40909c], eax
pop ebp
add esp, 0x400
ret
push 0x408288
jmp 0x40284b
push 0x408270
push 0x3f4
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov dword [0x40909c], 0
pop esi
pop ebp
add esp, 0x400
ret