Function at 0x4208e0
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 0x420904
push eax
call dword [0x458048]
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, 0x482540
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 0x420987
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
jmp 0x42099f
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 [0x458328]
mov ebp, eax
cmp dword [esi + 0xa4], ebx
jne 0x420a54
mov edi, dword [0x458058]
mov eax, dword [esi + 0x34]
cmp eax, 8
jne 0x420a0f
push ebx
push ebx
lea edx, [esi + 0xa8]
push edx
push 1
lea eax, [esp + 0x24]
push eax
jmp 0x420a23
cmp eax, 0x18
jne 0x420a2c
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 0x420a54
push 0x35
push 0x45c3f8
call fcn.00410110
add esp, 8
cmp eax, 2
je 0x420b18
cmp dword [esi + 0xa4], ebx
je 0x4209f5
cmp dword [esi + 0x30], 1
push ebp
jne 0x420b34
mov ecx, dword [esp + 0x444]
push ecx
call dword [0x45832c]
mov edx, dword [esi + 0xa0]
push edx
call dword [0x458328]
push eax
mov dword [esp + 0x14], eax
call dword [0x45802c]
mov ebp, eax
mov eax, dword [esi + 0xa4]
push eax
push ebp
call dword [0x458034]
mov dword [esi + 0xa4], eax
cmp dword [esi + 0x34], 8
jne 0x420ab6
mov ecx, dword [esp + 0x448]
push ecx
push 0x100
push ebx
push ebp
call dword [0x458064]
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 [0x458028]
mov edx, dword [esi + 0xa4]
push edx
push ebp
call dword [0x458034]
push ebp
mov dword [esi + 0xa4], eax
call dword [0x458094]
mov eax, dword [esi + 0xa0]
push edi
push eax
jmp 0x420bae
mov eax, dword [esp + 0x440]
push ebp
push eax
call dword [0x45832c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x42c
ret
call dword [0x45802c]
mov ecx, dword [esi + 0xa4]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x18], edi
call dword [0x458034]
mov edx, dword [esp + 0x448]
push edx
push 0x100
push ebx
push edi
mov dword [esi + 0xa4], eax
call dword [0x458064]
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 [0x458034]
push edi
mov dword [esi + 0xa4], eax
call dword [0x458094]
mov ecx, dword [esp + 0x440]
push ebp
push ecx
call dword [0x45832c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x42c
ret