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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a8001
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x4a7fe7
mov edx, dword [esp + 0x64]
cmp ecx, edx
jne 0x4a7fe7
mov ebx, dword [esp + 0x70]
cmp ebx, ecx
jne 0x4a7fe7
mov ebp, dword [esp + 0x50]
cmp ecx, ebp
jg 0x4a7fa1
ja 0x4a7fe0
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.004a7340
xor eax, eax
xor ecx, ecx
jmp 0x4a7e02
mov edx, dword [esp + 0x30]
inc edx
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x7c]
cmp eax, edx
jge 0x4a7f36
mov ebx, dword [esp + 0x64]
cmp eax, ebx
jae 0x4a7fd9
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + eax*4]
mov ebx, dword [esp + 0x40]
mov dword [esp], ebx
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x54]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call fcn.004af6a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jbe 0x4a7fd2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x70]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x78]
imul edx, edi
mov dword [esp + 0x18], edx
call fcn.004af6a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
lea edx, [ecx - 1]
neg edx
sar edx, 0x1f
and edx, 4
mov ebx, dword [esp + 0x40]
add edx, ebx
mov ebp, dword [esp + 0x28]
lea esi, [ebp - 1]
cmp ebp, esi
jle 0x4a7f32
mov dword [esp], ebx
mov dword [esp + 4], edx
shl esi, 2
mov dword [esp + 8], esi
call fcn.00448cd0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov edx, dword [esp + 0x34]
lea ebx, [ecx + edx]
mov ebp, dword [esp + 0x7c]
lea esi, [ebp - 1]
mov edi, dword [esp + 0x28]
cmp esi, edi
jae 0x4a7fcb
mov esi, dword [esp + 0x40]
mov dword [esi + ebp*4 - 4], ebx
cmp ecx, eax
jae 0x4a7f27
mov eax, 1
jmp 0x4a7df9
cmp ebx, edx
jb 0x4a7f1d
xor eax, eax
jmp 0x4a7df9
mov esi, ebp
jmp 0x4a7eda
test ecx, ecx
jne 0x4a7f5f
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x20], ebx
call fcn.004af520
jmp 0x4a7f3a
lea eax, [0x5cd2a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 8], eax
call fcn.00434f20
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x4a7dd7
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.004243c0
ud2
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea eax, [0x698ea0]
mov dword [esp + 4], eax
call fcn.004251b0
ud2
call fcn.00446b60
jmp fcn.004a7d80