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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4fa968
sub esp, 0x60
mov eax, dword [0x9c20f8]
test eax, eax
je 0x4fa929
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jle 0x4fa929
mov edx, 1
jmp 0x4fa4ff
shl eax, 1
inc edx
mov ecx, ebx
mov ebx, ecx
sar ecx, 1
cmp eax, ecx
jge 0x4fa50c
cmp edx, 0x40
jl 0x4fa4fa
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x68]
cmp eax, 0xa
jne 0x4fa8fe
lea eax, [0x9f5160]
mov dword [esp], eax
call fcn.00454de0
lea eax, [0x9f5168]
test byte [eax], al
mov eax, dword [esp + 0x34]
cmp eax, 0x40
ja 0x4fa961
mov ecx, eax
lea edx, [0x9f5168]
mov ebx, 0x40
lea ebp, [ecx - 1]
cmp ebp, eax
jae 0x4fa95a
mov dword [esp + 0x5c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ebx
lea ebp, [ecx + ecx*4]
mov ebp, dword [edx + ebp*4 - 4]
test ebp, ebp
jne 0x4fa8f5
xor ebp, ebp
jmp 0x4fa578
inc ebp
cmp ebp, ecx
jge 0x4fa8c0
cmp ebp, eax
jae 0x4fa953
lea esi, [ebp + ebp*4]
mov edi, dword [edx + esi*4 + 0x10]
test edi, edi
jne 0x4fa577
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], esi
test ebp, ebp
je 0x4fa834
lea edi, [ebp - 1]
cmp edi, eax
jae 0x4fa945
mov eax, dword [edx + esi*4 - 0xc]
mov ecx, dword [edx + esi*4 - 0x10]
mov ebx, dword [edx + esi*4 - 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004f3b60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x5c]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], eax
lea eax, [ebp + ebx*4]
mov ecx, dword [0xa08230]
test ecx, ecx
jne 0x4fa81b
mov dword [ebp + ebx*4], edx
mov eax, dword [ebp + ebx*4 - 4]
shl eax, 1
mov dword [ebp + ebx*4 + 0x10], eax
mov eax, dword [ebp + ebx*4 + 4]
mov ecx, dword [ebp + ebx*4]
lea edx, [ebp + ebx*4]
mov dword [esp + 0x58], edx
test eax, eax
jg 0x4fa7d1
mov esi, eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x54], eax
mov eax, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
cmp eax, esi
jle 0x4fa7ca
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044e0c0
jmp 0x4fa675
mov ecx, dword [edx + eax*4 + 0x10]
inc ecx
mov dword [edx + eax*4 + 0x10], ecx
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
call fcn.00501590
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa782
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + eax*4 + 8]
mov ebx, dword [ecx + eax*4]
mov ebp, dword [esp + 0x24]
cmp ebp, edx
jg 0x4fa74c
mov esi, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], edx
cmp ebp, esi
jle 0x4fa748
mov dword [esp + 0x50], ebx
mov dword [esp], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044e0c0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov dword [edx + eax*4 + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [0xa08230]
test ecx, ecx
jne 0x4fa727
mov ecx, dword [esp + 0x50]
mov dword [edx + eax*4], ecx
jmp 0x4fa66c
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.0040f250
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
jmp 0x4fa66c
mov esi, ebp
jmp 0x4fa6de
lea eax, [0x744200]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 8], ecx
call fcn.00439b00
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
jmp 0x4fa6d2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + eax*4 + 8]
mov ebx, dword [ecx + eax*4 + 4]
mov ebp, dword [ecx + eax*4]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004f51e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
jmp 0x4fa577
mov esi, eax
jmp 0x4fa653
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], ecx
lea ecx, [0x744200]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [eax + 4]
mov dword [esp + 8], edx
call fcn.00439b00
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x4c]
jmp 0x4fa643
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040f250
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x5c]
jmp 0x4fa615
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov ecx, dword [0x9c20f8]
mov dword [esp + 0x10], ecx
call fcn.004fa370
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
test ebx, ebx
jbe 0x4fa94c
mov ebp, dword [esp + 0x5c]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov eax, dword [0xa08230]
test eax, eax
jne 0x4fa8aa
mov dword [ebp], ecx
mov eax, dword [0x9c20f8]
mov ecx, dword [esp + 0x6c]
imul eax, ecx
mov dword [ebp + 0x10], eax
mov ebx, dword [esp + 0x44]
jmp 0x4fa61f
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.0040f250
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x5c]
jmp 0x4fa891
mov ecx, dword [esp + 0x68]
cmp ecx, 0xa
je 0x4fa8d9
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
add esp, 0x60
ret
lea eax, [0x9f5160]
mov dword [esp], eax
call fcn.00455110
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x38]
jmp 0x4fa8c9
mov ecx, dword [esp + 0x68]
cmp ecx, 0xa
jmp 0x4fa8c7
lea eax, [0x76dc60]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00439b00
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
jmp 0x4fa54d
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.004269c0
ud2
call fcn.0044be50
jmp fcn.004fa4c0