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

Disassembly:
sub esp, 0x42c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x440]
mov eax, dword [esi + 0xa4]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x421494
push eax
call dword [0x459028]
mov eax, dword [esp + 0x44c]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x34], eax
cdq
and edx, 7
add eax, edx
mov dword [esi + 0x48], edi
add edi, 7
and edi, 0xfffffff8
sar eax, 3
imul eax, edi
cmp esi, 0x483640
mov dword [esi + 0x18], eax
mov eax, 1
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov word [esi + 0xac], bx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x78], eax
jne 0x421517
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
jmp 0x42152f
or edx, 0xffffffff
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], edx
neg ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x440]
mov word [esp + 0x20], ax
mov ax, word [esi + 0x34]
push ecx
mov dword [esp + 0x18], 0x28
mov dword [esp + 0x1c], edi
mov word [esp + 0x26], ax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [0x459374]
mov ebp, eax
cmp dword [esi + 0xa4], ebx
jne 0x4215e4
mov edi, dword [0x45902c]
mov eax, dword [esi + 0x34]
cmp eax, 8
jne 0x42159f
push ebx
push ebx
lea edx, [esi + 0xa8]
push edx
push 1
lea eax, [esp + 0x24]
push eax
jmp 0x4215b3
cmp eax, 0x18
jne 0x4215bc
push ebx
push ebx
lea ecx, [esi + 0xa8]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebp
call edi
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xa4], ebx
jne 0x4215e4
push 0x35
push 0x45d454
call fcn.00410930
add esp, 8
cmp eax, 2
je 0x4216a8
cmp dword [esi + 0xa4], ebx
je 0x421585
cmp dword [esi + 0x30], 1
push ebp
jne 0x4216c4
mov ecx, dword [esp + 0x444]
push ecx
call dword [0x459370]
mov edx, dword [esi + 0xa0]
push edx
call dword [0x459374]
push eax
mov dword [esp + 0x14], eax
call dword [0x459080]
mov ebp, eax
mov eax, dword [esi + 0xa4]
push eax
push ebp
call dword [0x459084]
mov dword [esi + 0xa4], eax
cmp dword [esi + 0x34], 8
jne 0x421646
mov ecx, dword [esp + 0x448]
push ecx
push 0x100
push ebx
push ebp
call dword [0x459038]
mov ecx, dword [esi + 0x18]
imul ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0xa8]
mov edx, ecx
shr ecx, 2
push 0xcc0020
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
push ebx
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push edi
call dword [0x459094]
mov edx, dword [esi + 0xa4]
push edx
push ebp
call dword [0x459084]
push ebp
mov dword [esi + 0xa4], eax
call dword [0x459088]
mov eax, dword [esi + 0xa0]
push edi
push eax
jmp 0x42173e
mov eax, dword [esp + 0x440]
push ebp
push eax
call dword [0x459370]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x42c
ret
call dword [0x459080]
mov ecx, dword [esi + 0xa4]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x18], edi
call dword [0x459084]
mov edx, dword [esp + 0x448]
push edx
push 0x100
push ebx
push edi
mov dword [esi + 0xa4], eax
call dword [0x459038]
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 8]
mov edi, dword [esi + 0xa8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xa4]
mov edi, dword [esp + 0x10]
push eax
push edi
call dword [0x459084]
push edi
mov dword [esi + 0xa4], eax
call dword [0x459088]
mov ecx, dword [esp + 0x440]
push ebp
push ecx
call dword [0x459370]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x42c
ret