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

Disassembly:
push 0xffffffffffffffff
push 0x458a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x4797a0]
xor eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
push ebx
mov dword [esp + 0x50], eax
push ebp
push esi
mov esi, dword [esp + 0x6c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x74]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, esi
mov ebp, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edi
xor ebx, ebx
cmp ebp, ebx
mov edi, edx
mov eax, edx
mov ecx, ebp
je 0x4204cb
lea esp, [esp]
cdq
idiv ecx
mov eax, ecx
cmp edx, ebx
mov ecx, edx
jne 0x4204c0
cmp eax, edi
jge 0x4206a8
cmp eax, ebx
jle 0x4206a8
lea ecx, [eax + eax*2]
shl ecx, 4
lea edi, [ecx + esi]
lea edx, [ebp + ebp*2]
shl edx, 4
mov dword [esp + 0x74], edi
add ecx, edx
add ecx, esi
mov edi, 0x20
sub edi, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jmp 0x420514
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], 0x45e6c8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
add edi, ecx
push 0xffffffffffffffff
push ebx
lea edx, [edi - 0x1c]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 1
call fcn.00403670
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x420568
push eax
call fcn.004486cf
add esp, 4
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.0041f990
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x68], 2
jne 0x420596
lea eax, [esp + 0x70]
jmp 0x42059e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov edi, dword [eax]
cmp edi, dword [esp + 0x74]
je 0x420637
lea ebx, [ebx]
push 0xffffffffffffffff
push ebx
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
call fcn.00403670
mov eax, dword [esi + 0x24]
add esi, 0x20
cmp eax, ebx
je 0x4205d2
push eax
call fcn.004486cf
add esp, 4
lea ecx, [edi + 0x20]
push ecx
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0041f990
mov ecx, dword [esp + 0x78]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
mov esi, edi
jge 0x420613
mov ecx, dword [esp + 0x20]
add ecx, edi
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
jmp 0x42062b
mov eax, ebp
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x70]
shl edx, 4
add edx, eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
mov edi, dword [eax]
cmp edi, dword [esp + 0x74]
jne 0x4205b0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 4]
call fcn.00403670
mov eax, dword [esi + 0x24]
add esi, 0x20
cmp eax, ebx
je 0x42065a
push eax
call fcn.004486cf
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0041f990
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0041f5f0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
mov eax, 0x30
sub edx, eax
sub ecx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x42050c
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
xor ecx, dword [esp + 0x64]
pop ebp
pop ebx
add esp, 0x5c
jmp fcn.004311b5