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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ecx + 0x14]
xor edx, edx
mov dword [esp + 0x24], ecx
push esi
push edi
mov eax, dword [ebx + 0x94]
xor edi, edi
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ecx, dword [ecx + 0x18]
mov esi, eax
neg eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [esp + 0x24], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x4207dd
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x4207f8
mov ecx, dword [ebx + 0x18]
lea eax, [esi - 1]
add eax, edx
cmp eax, ecx
jbe 0x4207f2
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x4207f8
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edi
test ecx, ecx
jle 0x420aa8
mov esi, edx
mov dword [esp + 0x20], edx
nop word [eax + eax]
cmp dword [esp + 0x14], 0
jne 0x420aa8
mov eax, dword [esp + 0x2c]
cmp esi, dword [eax + 0x18]
je 0x420981
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x420981
mov edx, esi
mov ecx, eax
call fcn.00419b20
test eax, eax
je 0x42097d
mov eax, dword [ebx + 0xd0]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x4d9b24]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x420868
mov dword [esp + 0x30], eax
jmp 0x4208fc
mov eax, dword [ebx + 0xd0]
mov ebx, dword [ecx + 4]
cmp dword [ebx], 0
jne 0x420887
push ecx
mov edx, esi
mov ecx, eax
call fcn.0041a350
add esp, 4
mov ebx, eax
jmp 0x42088e
inc dword [eax + 0xc]
inc word [ebx + 0x1e]
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4208f8
movzx eax, word [ebx + 0x1c]
test al, 8
mov ecx, eax
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x18], edi
test cl, 0x20
je 0x420971
mov edx, dword [ebx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ebx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ebx
push dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
inc esi
inc eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
cmp eax, ecx
jl 0x420810
cmp dword [esp + 0x14], 0
jne 0x420aa8
test edi, edi
je 0x420aa8
mov esi, dword [esp + 0x24]
nop dword [eax]
mov eax, dword [ebx + 0xd0]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x4d9b24]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x420a98
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd0]
cmp dword [eax], 0
jne 0x420a38
push edx
mov edx, esi
call fcn.0041a350
add esp, 4
jmp 0x420a3f
mov ecx, ebx
call fcn.0041a3d0
jmp 0x4208f8
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4da850]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x420900
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0xc8]
push esi
push ebx
call eax
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4208fc
mov ecx, dword [esp + 0x30]
call fcn.004206b0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
movzx eax, word [edx + 0x1c]
test al, 8
mov ecx, eax
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x18], edi
test cl, 0x20
je 0x420a2c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x4208fc
mov ecx, edx
call fcn.0041a3d0
jmp 0x4208fc
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x420a98
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x420a91
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x34]
add esp, 0x10
jmp 0x420a98
mov ecx, eax
call fcn.0041a3d0
inc esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], esi
jne 0x420930
and byte [ebx + 0x14], 0xfb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret