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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a580c
sub esp, 0x68
mov eax, dword [esp + 0x70]
cmp eax, 1
jle 0x4a57b7
cmp eax, 2
je 0x4a5762
cmp eax, 3
je 0x4a56f7
lea ecx, [eax - 1]
mov edx, dword [esp + 0x7c]
mov ebx, edx
imul edx, ecx
mov ebp, dword [esp + 0x6c]
xor esi, esi
jmp 0x4a5502
lea edi, [esi + 1]
mov dword [esp + 0x38], edi
lea edi, [ebp + esi*8]
mov edi, dword [edi + 4]
add edx, edi
mov edi, dword [esp + 0x38]
mov esi, edi
cmp esi, eax
jge 0x4a550d
jb 0x4a54ec
jmp 0x4a5805
mov dword [esp + 0x50], ecx
lea eax, [0x4dc9e0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00436280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x70]
test ebx, ebx
jbe 0x4a57fe
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
cmp ecx, ebp
jle 0x4a56f0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], ebp
cmp edx, esi
je 0x4a5574
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0044a4e0
mov eax, dword [esp + 0x74]
dec eax
neg eax
sar eax, 0x1f
and eax, 8
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
jmp 0x4a55f4
mov eax, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add ecx, edx
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x50]
mov edx, ebx
mov ebx, esi
mov ebp, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
cmp ebx, ebp
jge 0x4a56be
lea eax, [eax + ebx*8]
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [esp + 0x3c]
cmp ebx, edx
ja 0x4a57f7
sub edx, ebx
sub ecx, ebx
neg ecx
sar ecx, 0x1f
and ecx, ebx
add ecx, esi
cmp edx, edi
jle 0x4a56b3
mov edx, edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x78]
cmp ecx, edx
je 0x4a564f
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.0044a4e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja 0x4a57f0
mov edx, ecx
sub ecx, eax
mov ebx, dword [esp + 0x44]
mov ebp, ebx
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov esi, dword [esp + 0x60]
add ebx, esi
mov edi, dword [esp + 0x34]
cmp ecx, edi
jle 0x4a56af
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x5c]
cmp ebx, ecx
je 0x4a55b3
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.0044a4e0
jmp 0x4a55b3
mov edi, ecx
jmp 0x4a5686
mov edi, edx
mov edx, dword [esp + 0x7c]
jmp 0x4a562b
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00439660
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
mov ebp, ecx
jmp 0x4a5550
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00439600
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
call fcn.00439540
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
test eax, eax
jne 0x4a57d5
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
call fcn.00424590
ud2
call fcn.00424590
ud2
call fcn.00424490
ud2
call fcn.00424490
ud2
call fcn.00448580
jmp fcn.004a54a0