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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x58]
mov esi, 1
shl esi, cl
push edi
push 0x18
mov dword [esp + 0x3c], esi
call fcn.0043a99d
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x420fe1
mov ecx, dword [esp + 0x54]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 8], eax
add eax, 7
sar eax, 3
mov dword [edi + 0x10], eax
imul eax, ecx
push eax
mov dword [edi], 0x451748
mov dword [edi + 0xc], ecx
call fcn.004397e0
mov ebp, edi
add esp, 4
mov dword [edi + 0x14], eax
mov dword [esp + 0x50], ebp
jmp 0x420fe7
mov dword [esp + 0x50], eax
mov ebp, eax
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x70]
mov edi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
test eax, eax
je 0x421003
or eax, 0xffffffff
jmp 0x421005
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x48]
test edi, edi
je 0x42102d
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.004209a0
jmp 0x42103e
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0041d7f0
mov ecx, dword [esp + 0x10]
imul ecx, esi
neg ecx
xor eax, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
ja 0x421070
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x34
ret 0x68
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
nop
test edi, edi
je 0x42108b
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004209a0
jmp 0x42109c
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x18]
push edx
call fcn.0041d7f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
imul eax, esi
add ecx, eax
test edi, edi
mov dword [esp + 0x10], ecx
je 0x4210c8
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x1c]
push edx
call fcn.004209a0
jmp 0x4210d9
mov eax, dword [ebx + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041d7f0
mov ebp, dword [esp + 0x2c]
add ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
cmp esi, 1
mov dword [esp + 0x70], ebp
jne 0x4210f8
mov dword [esp + 0x14], 0
jmp 0x421120
test edi, edi
je 0x42110f
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x7c]
push edx
call fcn.0041d9f0
mov dword [esp + 0x14], eax
jmp 0x421120
mov eax, dword [ebx + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041d7f0
mov esi, dword [esp + 0x48]
test esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edi, [eax + edx]
je 0x421162
mov eax, dword [esp + 0x64]
test eax, eax
je 0x421153
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.004209a0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
jmp 0x421177
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx + 0x7c]
push eax
call fcn.0041d9f0
jmp 0x421173
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
push edx
call fcn.0041d7a0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42126a
test esi, esi
je 0x421250
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4211a6
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 8], 8
mov eax, dword [esi + 8]
dec eax
mov dword [esi + 8], eax
mov ecx, eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x48]
shr eax, cl
and eax, 1
mov dword [esp + 0x1c], eax
test eax, eax
je 0x421272
test esi, esi
je 0x4212ad
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.004209a0
mov edx, dword [esp + 0x94]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004209a0
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x34]
push edx
call fcn.004209a0
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.004209a0
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004209a0
mov eax, dword [ebx + 0x7c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041d590
jmp 0x4212f1
mov ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x20]
push edx
call fcn.0041d7f0
mov eax, dword [esp + 0x1c]
jmp 0x4211bf
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x78]
dec eax
dec ecx
test edx, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], ecx
je 0x42139a
cmp edx, 3
ja case.default.0x4212a6
jmp dword [edx*4 + 0x421454]
mov ecx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x28]
push edx
call fcn.0041d7f0
mov eax, dword [ebx + 0x70]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041d7f0
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0041d7f0
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x38]
push edx
call fcn.0041d7f0
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x4212fa
dec eax
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x421312
dec eax
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0x34]
cdq
push ebp
mov ebp, dword [esp + 0xac]
sub eax, edx
mov edx, dword [esp + 0x58]
push ebp
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xb8]
push 0
push ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add esi, ecx
push edx
push esi
mov ecx, ebx
call fcn.0041f580
mov ebp, dword [esp + 0x70]
mov esi, eax
jmp 0x42127d
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x421386
mov ecx, dword [esp + 0x74]
push ecx
sub edi, eax
jmp 0x421386
sub edi, eax
mov edx, dword [esp + 0x74]
push edx
mov ecx, dword [esp + 0x54]
push ebp
push edi
push esi
call fcn.0041e200
mov ecx, dword [esp + 0x54]
add ebp, ecx
jmp 0x4213bf
cmp edx, 3
ja case.default.0x42139f
jmp dword [edx*4 + 0x421464]
sub edi, ecx
mov eax, dword [esp + 0x74]
push eax
mov ecx, dword [esp + 0x54]
push edi
push ebp
push esi
call fcn.0041e200
mov eax, dword [esp + 0x70]
add ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4213cf
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
inc ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x421407
mov eax, dword [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.004209a0
jmp 0x421418
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x4213ad
mov edx, dword [esp + 0x74]
push edx
sub edi, ecx
jmp 0x4213ad
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041d7f0
test eax, eax
je 0x421438
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
add ecx, edx
add ebp, ecx
jmp 0x4210e5
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x58]
jb 0x421067
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x68