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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a6f38
sub esp, 0x68
call fcn.00434500
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ebx, dword [esp]
test eax, eax
jle 0x4a6f1b
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], ebp
xor ebp, ebp
jmp 0x4a6ec4
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov ebx, ebp
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
cmp edx, eax
jge 0x4a6d90
mov dword [esp + 0x3c], eax
sub eax, edx
mov dword [esp + 0x44], eax
sar eax, 0x1f
shr eax, 0x1f
mov ebp, dword [esp + 0x44]
add eax, ebp
sar eax, 1
lea ebp, [eax + edx]
mov esi, dword [esp + 0x34]
cmp ebp, esi
jae 0x4a6f2a
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebp
mov eax, dword [ecx + ebp*4]
add eax, ebx
mov dword [esp], eax
call fcn.004a2900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4a6d7b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
jmp 0x4a6cd4
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x3c]
jmp 0x4a6cd4
mov eax, dword [esp + 0x34]
jmp 0x4a6dc1
mov ecx, dword [esp + 0x38]
inc ecx
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov esi, edx
mov dword [esp + 0x28], ebx
mov edi, eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
mov edx, ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], esi
mov dword [esp + 0x60], edi
cmp edx, eax
jge 0x4a6e8e
jae 0x4a6f23
mov dword [esp + 0x38], edx
mov eax, dword [ecx + edx*4]
add eax, ebx
mov dword [esp + 0x5c], eax
mov dword [esp], eax
call fcn.004a2900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x70]
cmp eax, edx
jne 0x4a6e8e
mov dword [esp], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a6e8e
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jg 0x4a6e57
mov eax, dword [esp + 0x60]
mov ebp, dword [0xadb480]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x4a6e45
mov ebp, dword [esp + 0x5c]
mov dword [eax + ecx*4], ebp
jmp 0x4a6d96
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0044c870
mov eax, ecx
jmp 0x4a6d96
lea eax, [0x7cc480]
mov dword [esp], eax
mov ebp, dword [esp + 0x60]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x24]
jmp 0x4a6e2c
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jge 0x4a6eff
mov edx, dword [esp + 0x64]
add edx, 0xc
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
mov ebx, ebp
mov ecx, edx
mov ebp, eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
cmp ebp, edx
jae 0x4a6f31
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], ecx
mov ebx, dword [ebx + ebp*4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
jmp 0x4a6cfa
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
add esp, 0x68
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4a6f0b
call fcn.00426430
ud2
call fcn.00426430
ud2
call fcn.00426430
ud2
call fcn.0044b110
jmp fcn.004a6c80