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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
call fcn.004dd7ec
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.004df190
mov dword [esp], 0x68b8a4
call fcn.004eec50
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
mov dword [esp], 0x68b8c0
call fcn.005106f8
lea ebx, [esp + 0x48]
test eax, eax
je 0x4fa1b4
nop
mov esi, dword [esp + 0xb8]
mov dword [esp + 4], 0xffffffff
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004eb494
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call esi
lea edx, [esp + 0x60]
mov dword [esp], edx
call fcn.00510748
test eax, eax
jne 0x4fa174
mov dword [esp], 0x68b8a4
call fcn.004eecb4
mov dword [esp + 0x50], 0
call fcn.004f9ccc
mov dword [esp + 0x34], eax
inc dword [eax]
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004dfe8c
call fcn.0051a7c4
mov ebx, eax
inc dword [eax]
mov edx, dword [esp + 0x50]
dec edx
mov dword [esp + 0x2c], edx
js 0x4fa52c
lea eax, [esp + 0x78]
mov dword [esp + 0x30], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x38], edx
nop
call fcn.004dd7ec
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x30]
mov esi, 0x5ef99c
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x58]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004dfe10
mov eax, dword [esp + 0x58]
inc dword [eax]
mov edx, dword [esp + 0x28]
inc dword [edx]
lea edx, [esp + 0x78]
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x61eac3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00507bfc
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004dfc64
xor ebp, ebp
mov eax, dword [esp + 0x54]
test eax, eax
jg 0x4fa2d4
jmp 0x4fa35c
mov eax, dword [esi]
dec eax
mov dword [esi], eax
test eax, eax
jle 0x4fa348
inc ebp
cmp ebp, dword [esp + 0x54]
jge 0x4fa35c
mov dword [esp + 8], 1
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + ebp*4]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00557928
mov edi, eax
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00557928
mov esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.005192c0
mov eax, dword [edi]
dec eax
mov dword [edi], eax
test eax, eax
jg 0x4fa2c0
mov dword [esp], edi
call fcn.004dd854
mov eax, dword [esi]
dec eax
mov dword [esi], eax
test eax, eax
jg 0x4fa2c9
lea esi, [esi]
mov dword [esp], esi
call fcn.004dd854
inc ebp
cmp ebp, dword [esp + 0x54]
jl 0x4fa2d4
nop
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
dec eax
mov edx, dword [esp + 0x28]
mov dword [edx], eax
test eax, eax
jle 0x4fa4cc
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
dec edx
mov dword [eax], edx
test edx, edx
jle 0x4fa4bc
dec dword [esp + 0x2c]
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4fa218
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
dec eax
mov edx, dword [esp + 0x34]
mov dword [edx], eax
test eax, eax
jle 0x4fa51b
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x68bb00
call fcn.004ff150
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jle 0x4fa50e
mov dword [esp], 0x68bb00
call fcn.004ff218
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
lea ebp, [esp + 0x6c]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00519c0c
lea ebx, [esp + 0x48]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4fa45d
mov edi, dword [esp + 0x38]
nop
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call dword [esp + 0xb8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.00519cd8
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4fa420
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
lea edx, [esp + 0x88]
mov dword [esp], edx
call fcn.005106f8
test eax, eax
je 0x4fa4dd
mov ebx, dword [esp + 0x3c]
jmp 0x4fa4aa
inc edx
je 0x4fa4b6
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004dfccc
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00510748
test eax, eax
je 0x4fa4dd
mov edx, dword [esp + 0xb0]
cmp edx, 1
jne 0x4fa480
mov eax, dword [eax + 0x10]
jmp 0x4fa486
mov dword [esp], eax
call fcn.004dd854
jmp 0x4fa386
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004dd854
jmp 0x4fa375
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.004e1100
lea edx, [esp + 0x88]
mov dword [esp], edx
call fcn.00510620
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.004dd854
jmp 0x4fa3d3
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004dd854
jmp 0x4fa3ae
lea edx, [esp + 0x5c]
mov dword [esp + 0x38], edx
jmp 0x4fa395