Function at 0x204026d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x2047f258
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x50], 1
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
call fcn.20402090
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x20402971
jmp 0x20402750
mov edx, dword [esp + 0x64]
mov dword [esp + 0x24], edx
jmp 0x20402760
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.20402570
add esp, 0x10
test al, al
je 0x204028d5
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x2c], 0
jne 0x204027a2
lea eax, [esp + 0x2c]
jmp 0x204027af
cmp ebp, 0xffffffff
je 0x20402897
test ebp, ebp
jne 0x204027c1
mov edi, dword [esi + 0x74]
test edi, edi
je 0x204027ca
mov edx, dword [edi + 0x78]
mov dword [eax], edx
mov ebp, dword [esp + 0x18]
jmp 0x204027ca
mov edi, ebp
mov ebp, dword [ebp + 0x78]
mov dword [esp + 0x18], ebp
cmp dword [eax], 0
jne 0x204027d9
mov dword [eax], 0xffffffff
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x20402897
mov ecx, dword [esp + 0x30]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x2040278a
cmp dword [edi], 6
jne 0x2040278a
mov esi, dword [esp + 0x58]
lea edx, [esp + 0x20]
push edx
push eax
push edi
call fcn.20401e20
add esp, 0xc
test eax, eax
jne 0x204028d5
mov eax, dword [esp + 0x20]
add eax, 1
je 0x2040283b
add eax, eax
push eax
push ebx
call dword [sym.imp.MSVCR80.dll_realloc]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x40], ebx
je 0x204028c0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
call fcn.20401e20
add esp, 0xc
test eax, eax
jne 0x204028d5
cmp byte [esp + 0x17], 0
mov eax, ebx
je 0x20402871
cmp word [ebx], 0x30
jne 0x20402871
cmp word [eax + 2], 0
je 0x20402871
add eax, 2
cmp word [eax], 0x30
je 0x20402861
mov edi, dword [esp + 0x38]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x20402897
cmp dword [esp + 0x24], eax
je 0x20402917
mov esi, dword [esp + 0x1c]
jmp 0x20402760
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x30]
call fcn.20402090
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x20402969
mov esi, eax
jmp 0x20402750
mov dword [esp + 0x44], 0
mov byte [esp + 0x50], 0
mov esi, dword [sym.imp.MSVCR80.dll_free]
jmp 0x204028ef
mov byte [esp + 0x50], 1
test ebx, ebx
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x204028ea
push ebx
call esi
add esp, 4
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x204028fd
push eax
call esi
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x204029a7
push eax
jmp 0x204029a2
mov byte [esp + 0x50], 1
test ebx, ebx
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x2040292c
push ebx
call esi
add esp, 4
mov byte [esp + 0x50], 0
test edi, edi
je 0x2040293b
push edi
call esi
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x20402951
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov byte [esp + 0x50], 1
test ebx, ebx
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x20402986
push ebx
call esi
add esp, 4
mov byte [esp + 0x50], 0
test edi, edi
je 0x20402995
push edi
call esi
add esp, 4
mov dword [esp + 0x50], 0xffffffff
test ebp, ebp
je 0x204029a7
push ebp
call esi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret