Function at 0x421650
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.0044a5dd
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x4216b1
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], 0x46157c
mov dword [edi + 0xc], ecx
call fcn.004492c0
mov ebp, edi
add esp, 4
mov dword [edi + 0x14], eax
mov dword [esp + 0x50], ebp
jmp 0x4216b7
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 0x4216d3
or eax, 0xffffffff
jmp 0x4216d5
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 0x4216fd
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.00421070
jmp 0x42170e
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0041ded0
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 0x421740
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 0x42175b
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00421070
jmp 0x42176c
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x18]
push edx
call fcn.0041ded0
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 0x421798
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x1c]
push edx
call fcn.00421070
jmp 0x4217a9
mov eax, dword [ebx + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041ded0
mov ebp, dword [esp + 0x2c]
add ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
cmp esi, 1
mov dword [esp + 0x70], ebp
jne 0x4217c8
mov dword [esp + 0x14], 0
jmp 0x4217f0
test edi, edi
je 0x4217df
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x7c]
push edx
call fcn.0041e0d0
mov dword [esp + 0x14], eax
jmp 0x4217f0
mov eax, dword [ebx + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041ded0
mov esi, dword [esp + 0x48]
test esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edi, [eax + edx]
je 0x421832
mov eax, dword [esp + 0x64]
test eax, eax
je 0x421823
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.00421070
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
jmp 0x421847
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx + 0x7c]
push eax
call fcn.0041e0d0
jmp 0x421843
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
push edx
call fcn.0041de80
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42193a
test esi, esi
je 0x421920
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi + 8]
test eax, eax
jne 0x421876
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 0x421942
test esi, esi
je 0x42197d
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.00421070
mov edx, dword [esp + 0x94]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00421070
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x34]
push edx
call fcn.00421070
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.00421070
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00421070
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.0041dc70
jmp 0x4219c1
mov ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x20]
push edx
call fcn.0041ded0
mov eax, dword [esp + 0x1c]
jmp 0x42188f
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 0x421a6a
cmp edx, 3
ja case.default.0x421976
jmp dword [edx*4 + 0x421b24]
mov ecx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x28]
push edx
call fcn.0041ded0
mov eax, dword [ebx + 0x70]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041ded0
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0041ded0
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x38]
push edx
call fcn.0041ded0
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x4219ca
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 0x4219e2
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.0041fc50
mov ebp, dword [esp + 0x70]
mov esi, eax
jmp 0x42194d
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x421a56
mov ecx, dword [esp + 0x74]
push ecx
sub edi, eax
jmp 0x421a56
sub edi, eax
mov edx, dword [esp + 0x74]
push edx
mov ecx, dword [esp + 0x54]
push ebp
push edi
push esi
call fcn.0041e8e0
mov ecx, dword [esp + 0x54]
add ebp, ecx
jmp 0x421a8f
cmp edx, 3
ja case.default.0x421a6f
jmp dword [edx*4 + 0x421b34]
sub edi, ecx
mov eax, dword [esp + 0x74]
push eax
mov ecx, dword [esp + 0x54]
push edi
push ebp
push esi
call fcn.0041e8e0
mov eax, dword [esp + 0x70]
add ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421a9f
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 0x421ad7
mov eax, dword [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.00421070
jmp 0x421ae8
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x421a7d
mov edx, dword [esp + 0x74]
push edx
sub edi, ecx
jmp 0x421a7d
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041ded0
test eax, eax
je 0x421b08
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 0x4217b5
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x58]
jb 0x421737
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x68