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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x70]
mov ebx, eax
lea esi, [esp + 0x3c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.00420230
cmp eax, ebp
jne 0x420cf1
mov eax, dword [esp + 0x40]
cmp eax, ebp
ja 0x420868
mov esi, dword [esp + 0x3c]
cmp esi, 0x80000000
jae 0x420868
cmp eax, ebp
ja 0x420868
cmp esi, 0x4000000
jb 0x420875
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [edi], esi
cmp esi, ebp
jne 0x4209a0
mov dword [edi + 4], ebp
cmp esi, ebp
jbe 0x4208a2
xor ecx, ecx
mov edx, esi
lea ebx, [ebx]
mov eax, dword [edi + 4]
lea eax, [ecx + eax + 0x18]
add ecx, 0x20
dec edx
mov dword [eax], ebp
mov dword [eax + 4], ebp
jne 0x420890
mov dword [esp + 0x28], ebp
cmp esi, ebp
jbe 0x420ba4
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
add eax, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x420b97
mov eax, dword [ebx]
mov cl, byte [eax]
mov edx, dword [esp + 0x18]
dec esi
inc eax
mov byte [esp + 0x17], cl
xor edi, edi
and cl, 0xf
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov byte [edx + 0x17], cl
movzx ebp, cl
je 0x420902
test esi, esi
je 0x420b97
mov cl, byte [eax]
mov byte [edi + edx + 8], cl
dec esi
inc eax
inc edi
mov dword [ebx + 4], esi
mov dword [ebx], eax
cmp edi, ebp
jb 0x4208e8
test byte [esp + 0x17], 0x10
je 0x4209c5
lea esi, [esp + 0x44]
call fcn.00420230
xor ebp, ebp
cmp eax, ebp
jne 0x420cf1
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
ja 0x420868
mov eax, dword [esp + 0x44]
jb 0x420952
cmp eax, 0x80000000
jae 0x420868
cmp ecx, ebp
ja 0x420868
jb 0x420952
cmp eax, 0x4000000
jae 0x420868
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x4c]
mov dword [edi], eax
call fcn.00420230
cmp eax, ebp
jne 0x420cf1
mov ecx, dword [esp + 0x50]
cmp ecx, ebp
ja 0x420868
mov eax, dword [esp + 0x4c]
jb 0x42099b
cmp eax, 0x80000000
jae 0x420868
cmp ecx, ebp
ja 0x420868
jb 0x42099b
cmp eax, 0x4000000
jae 0x420868
mov dword [edi + 4], eax
jmp 0x4209d4
mov eax, esi
shl eax, 5
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [edi + 4], eax
cmp eax, ebp
jne 0x420882
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [edx], 1
mov dword [edx + 4], 1
xor ebp, ebp
test byte [esp + 0x17], 0x20
je 0x420a34
lea esi, [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.00420230
cmp eax, ebp
jne 0x420cf1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov dword [esi + 0x18], edi
cmp edi, ebp
jne 0x420a08
mov dword [esi + 0x1c], ebp
jmp 0x420a1e
push edi
call dword [esp + 0x78]
xor edx, edx
add esp, 4
cmp eax, ebp
setne dl
mov dword [esi + 0x1c], eax
cmp edx, ebp
je 0x4209b8
mov eax, dword [esi + 0x1c]
push eax
mov eax, ebx
call fcn.004201b0
add esp, 4
cmp eax, ebp
jne 0x420cf1
test byte [esp + 0x17], 0x80
je 0x420b67
nop
mov esi, dword [ebx + 4]
cmp esi, ebp
je 0x420b97
mov eax, dword [ebx]
mov cl, byte [eax]
mov dl, cl
and dl, 0xf
lea edi, [eax + 1]
movzx eax, dl
cdq
mov dword [esp + 0x68], edx
dec esi
xor edx, edx
mov dword [ebx + 4], esi
mov byte [esp + 0x17], cl
mov dword [ebx], edi
cmp dword [esp + 0x68], edx
ja 0x420b97
jb 0x420a7f
cmp eax, esi
ja 0x420b97
sub esi, eax
add edi, eax
mov dword [ebx + 4], esi
mov dword [ebx], edi
test cl, 0x10
je 0x420b1f
lea esi, [esp + 0x54]
call fcn.00420230
xor ebp, ebp
cmp eax, ebp
jne 0x420cf1
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
ja 0x420868
mov eax, dword [esp + 0x54]
jb 0x420ad6
cmp eax, 0x80000000
jae 0x420868
cmp ecx, ebp
ja 0x420868
jb 0x420ad6
cmp eax, 0x4000000
jae 0x420868
lea esi, [esp + 0x5c]
call fcn.00420230
cmp eax, ebp
jne 0x420cf1
mov ecx, dword [esp + 0x60]
cmp ecx, ebp
ja 0x420868
mov eax, dword [esp + 0x5c]
jb 0x420b19
cmp eax, 0x80000000
jae 0x420868
cmp ecx, ebp
ja 0x420868
jb 0x420b19
cmp eax, 0x4000000
jae 0x420868
mov cl, byte [esp + 0x17]
jmp 0x420b21
xor ebp, ebp
test cl, 0x20
je 0x420b5f
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00420230
cmp eax, ebp
jne 0x420cf1
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp dword [esp + 0x30], ecx
ja 0x420b97
mov ecx, dword [esp + 0x2c]
jb 0x420b54
cmp ecx, eax
ja 0x420b97
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x420a40
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], ecx
add dword [esp + 0x20], edx
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x3c]
jae 0x420ba4
mov edi, dword [esp + 0x70]
xor ebp, ebp
jmp 0x4208b2
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
dec esi
xor ebp, ebp
mov dword [esp + 0x28], esi
mov dword [edi + 8], esi
cmp esi, ebp
jne 0x420bbf
mov dword [edi + 0xc], ebp
jmp 0x420bd9
lea eax, [esi*8]
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, ebp
je 0x4209b8
cmp esi, ebp
jbe 0x420c81
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
lea esi, [esp + 0x5c]
lea edi, [edx + ebp*8]
call fcn.00420230
test eax, eax
jne 0x420cf1
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x420868
mov eax, dword [esp + 0x5c]
jb 0x420c2e
cmp eax, 0x80000000
jae 0x420868
test ecx, ecx
ja 0x420868
jb 0x420c2e
cmp eax, 0x4000000
jae 0x420868
lea esi, [esp + 0x54]
mov dword [edi], eax
call fcn.00420230
test eax, eax
jne 0x420cf1
mov ecx, dword [esp + 0x58]
test ecx, ecx
ja 0x420868
mov eax, dword [esp + 0x54]
jb 0x420c73
cmp eax, 0x80000000
jae 0x420868
test ecx, ecx
ja 0x420868
jb 0x420c73
cmp eax, 0x4000000
jae 0x420868
inc ebp
mov dword [edi + 4], eax
cmp ebp, dword [esp + 0x28]
jb 0x420be1
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x70]
mov edi, ebp
sub edi, dword [esp + 0x28]
mov dword [esi + 0x10], edi
jne 0x420cf9
mov dword [esi + 0x14], 0
xor ebp, ebp
test edi, edi
je 0x420cef
lea esi, [esp + 0x5c]
call fcn.00420230
test eax, eax
jne 0x420cf1
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x420868
mov eax, dword [esp + 0x5c]
jb 0x420ce0
cmp eax, 0x80000000
jae 0x420868
test ecx, ecx
ja 0x420868
jb 0x420ce0
cmp eax, 0x4000000
jae 0x420868
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x14]
mov dword [edx + ebp*4], eax
inc ebp
cmp ebp, edi
jb 0x420ca1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea eax, [edi*4]
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4209b8
cmp edi, 1
jne 0x420c9b
xor edi, edi
test ebp, ebp
je 0x420cef
mov ebx, dword [esi + 8]
xor ecx, ecx
test ebx, ebx
je 0x420d3c
mov edx, dword [esi + 0xc]
lea ebx, [ebx]
cmp dword [edx], edi
je 0x420d48
inc ecx
add edx, 8
cmp ecx, ebx
jb 0x420d30
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
test ecx, ecx
js 0x420d3c
inc edi
cmp edi, ebp
jb 0x420d21
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret