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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4f4500]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
mov dword [esp + 0x10], eax
call fcn.0044353b
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4210aa
lea ecx, [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x10], eax
jmp 0x4210ae
mov dword [esp + 0x10], ebx
mov esi, 7
xor edx, edx
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
call fcn.00420f10
test al, al
je 0x42126f
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jbe 0x421100
call fcn.00443510
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x42117c
call fcn.00443510
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42111d
call fcn.00443510
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421122
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.00408ab0
cmp dword [esp + 0x60], ebx
je 0x4211d6
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00407770
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
inc edi
cmp ecx, ebx
jne 0x421180
call fcn.00443510
mov ecx, dword [esp + 0x28]
xor eax, eax
lea esi, [esi + edi*2]
cmp esi, dword [eax + 0x10]
ja 0x42118b
cmp ecx, ebx
je 0x421184
mov eax, dword [ecx]
jmp 0x421186
mov eax, dword [eax]
jmp 0x421113
mov eax, dword [ecx]
jmp 0x42116c
xor eax, eax
cmp esi, dword [eax + 0xc]
jae 0x421194
call fcn.00443510
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x421268
call fcn.00443510
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4211ad
call fcn.00443510
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4211b2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.00408ab0
cmp dword [esp + 0x60], ebx
jne 0x421146
mov esi, 7
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x4211f6
mov edx, dword [esp + 0x6c]
push edx
call fcn.00443256
add esp, 4
xor eax, eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
cmp dword [esp + 0x64], edi
jb 0x42121b
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00443256
add esp, 4
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
cmp eax, ebx
je 0x42123b
push eax
call fcn.00443256
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00443256
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
jmp 0x4211a3
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x6c]
call fcn.00420fb0
add esp, 4
test al, al
je 0x4212f7
cmp dword [esp + 0x7c], ebx
je 0x4212e4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
xor eax, eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
call fcn.00407d30
push 0x2d
push 1
lea ecx, [esp + 0x38]
call fcn.00411580
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
mov ecx, eax
call fcn.00407c10
mov ecx, dword [esp + 0xc]
push eax
call fcn.00407770
cmp dword [esp + 0x48], 8
jb 0x4212e4
mov eax, dword [esp + 0x34]
push eax
call fcn.00443256
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00407770
jmp 0x4211db
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x421312
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00443256
add esp, 4
xor edx, edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
cmp dword [esp + 0x64], edi
jb 0x421337
mov eax, dword [esp + 0x50]
push eax
call fcn.00443256
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
cmp eax, ebx
je 0x421357
push eax
call fcn.00443256
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00443256
mov ecx, dword [esp + 0x88]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004436fd
mov esp, ebp
pop ebp
ret