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

Disassembly:
sub esp, 0x284
mov ax, word [0x4ffd80]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x8c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8e]
mov dword [esp + 0x50], 0x42a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x5009f4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 2
mov dword [esp + 0x38], 0x41b
mov dword [esp + 0x3c], 0x407
mov dword [esp + 0x70], 0x3f6
mov dword [esp + 0x74], 0x413
mov dword [esp + 0x78], 0x40e
mov dword [esp + 0x7c], 0x40f
mov dword [esp + 0x80], 0x410
mov dword [esp + 0x84], 0x412
mov dword [esp + 0x88], 0x401
je 0x420ff6
mov edx, dword [0x6deea8]
lea ecx, [esp + 0x8c]
push 0x104
push ecx
push 0x11c
push edx
call dword [0x4db688]
mov esi, dword [esp + 0x298]
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [0x4db658]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [0x5009f8]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ecx, ebp
add ecx, ebx
push 6
sub edx, eax
push ecx
push edx
push edi
push edi
push edi
push esi
call dword [0x4db680]
mov ebx, dword [0x4db65c]
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov edx, dword [ecx]
mov dword [esp + 0x24], edi
push edx
push esi
call ebx
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [0x4db658]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [0x4db6e0]
test eax, eax
je 0x420f50
lea edx, [esp + 0x20]
push edx
push esi
call dword [0x4db6e0]
mov eax, dword [0x5009f8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 5
push edi
add ecx, eax
push edi
push ecx
push edx
push edi
push ebp
call dword [0x4db680]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x420f0c
mov dword [0x5009f8], edi
lea edi, [esp + 0x38]
mov ebp, 2
mov eax, dword [edi]
push 5
push eax
push esi
call ebx
push eax
call dword [0x4db63c]
add edi, 4
dec ebp
jne 0x420f92
lea ebp, [esp + 0x70]
mov dword [esp + 0x10], 7
mov edi, dword [ebp]
cmp edi, 0x40e
je 0x420fc6
cmp edi, 0x40f
jne 0x420fd6
push 0x3f6
push esi
call dword [0x4db640]
test eax, eax
je 0x420fe3
push 1
push edi
push esi
call ebx
push eax
call dword [0x4db6e8]
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x420fb3
jmp 0x42118d
mov esi, dword [esp + 0x298]
mov ebx, dword [0x4db65c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edi
push ecx
push 0x417
push esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call ebx
mov ebp, dword [0x4db658]
push eax
call ebp
lea edx, [esp + 0x60]
push edx
push 0x418
push esi
call ebx
push eax
call ebp
lea eax, [esp + 0x18]
push eax
push esi
call ebp
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x24]
push 6
sub ecx, edx
mov edx, dword [esp + 0x24]
sub ecx, eax
mov dword [0x5009f8], eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push edi
push edi
push edi
push esi
call dword [0x4db680]
lea eax, [esp + 0x50]
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov edx, dword [ecx]
mov dword [esp + 0x34], edi
push edx
push esi
call ebx
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
call dword [0x4db658]
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [0x4db6e0]
test eax, eax
je 0x4210e8
lea edx, [esp + 0x30]
push edx
push esi
call dword [0x4db6e0]
mov eax, dword [esp + 0x2c]
mov edx, dword [0x5009f8]
mov ecx, dword [esp + 0x28]
push 5
push edi
sub eax, edx
push edi
push eax
push ecx
push edi
push ebp
call dword [0x4db680]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x4210a4
lea ebp, [esp + 0x38]
mov dword [esp + 0x10], 2
mov edx, dword [ebp]
push edi
push edx
push esi
call ebx
push eax
call dword [0x4db63c]
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x421128
lea ebp, [esp + 0x70]
mov dword [esp + 0x10], 7
mov eax, dword [ebp]
push edi
push eax
push esi
call ebx
push eax
call dword [0x4db6e8]
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x421151
mov edx, dword [0x6deea8]
lea ecx, [esp + 0x8c]
push 0x104
push ecx
push 0x11b
push edx
call dword [0x4db688]
lea eax, [esp + 0x8c]
push eax
push 0x42a
push esi
call ebx
push eax
call dword [0x4db68c]
push 0x42a
push esi
mov ecx, 0x500780
call fcn.00445cc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret 8