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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov ebp, edx
xor eax, eax
mov dword [esp + 0x20], ebp
mov esi, ecx
cmp dword [ebp + 0x44], eax
je 0x4fb1b4
cmp dword [ebp + 0x34], eax
jne 0x4fb1b4
test dword [ebp + 4], 0x100000
jne 0x4fb1b4
cmp byte [esi + 0xd0], 2
jae 0x4fb1b4
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4faa3b
cmp dword [esi + 0x74], eax
jne 0x4faa32
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x4faa32
mov byte [esi + 0x17], 1
call fcn.004843a0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
mov ebx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x64], eax
push 0
push 0x40
test ebx, ebx
je 0x4faa8a
mov ecx, ebx
call fcn.004600a0
mov edi, eax
mov dword [esp + 0x34], edi
jmp 0x4faa95
call fcn.0045f9d0
mov edi, eax
mov dword [esp + 0x34], eax
add esp, 8
test edi, edi
je 0x4fb1d5
push 0x40
push 0
push edi
call fcn.00533fc0
add esp, 0xc
mov dword [esp + 0x3c], esi
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x4a5290
mov edx, ebp
movlpd qword [esp + 0x48], xmm0
lea ecx, [esp + 0x3c]
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x44], fcn.00420bc0
call fcn.00497f60
test byte [ebp + 4], 8
mov dword [esp + 0x28], edi
jne 0x4fab2c
mov ebx, dword [ebp + 0x30]
mov dword [esp + 0x40], 0x4fa9a0
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], edi
test ebx, ebx
je 0x4fab2c
mov edi, dword [ebx]
add ebx, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
test edi, edi
jle 0x4fab2c
mov dword [esp + 0x28], eax
mov edx, dword [ebx]
lea ecx, [esp + 0x3c]
call fcn.00497f50
test eax, eax
jne 0x4fab2c
dec edi
add ebx, 0x14
test edi, edi
jg 0x4fab15
mov eax, dword [ebp + 4]
xor edx, edx
mov ebx, dword [esp + 0x18]
and eax, 0xfffffff7
or eax, 0x100000
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov ecx, esi
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 4], eax
push 1
push dword [ebx + 8]
call fcn.004fa7a0
push 1
push dword [ebx + 0xc]
mov edx, eax
mov ecx, esi
call fcn.004fa7a0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4fac22
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4fac22
mov edx, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x5c], edx
cmp eax, edx
jg 0x4fac22
mov dword [ecx], eax
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x4fac1c
cmp eax, dword [edx]
jne 0x4fac1c
xor ebx, ebx
test eax, eax
jle 0x4fabfa
mov eax, ecx
lea ebp, [ecx + 8]
sub eax, edx
lea edi, [edx + 0x10]
mov dword [esp + 0x58], eax
mov al, byte [edi + eax]
cmp al, byte [edi]
jne 0x4fac14
mov edx, dword [ebp]
xor ecx, ecx
push 0xffffffffffffffff
push dword [edi - 8]
call fcn.004a4710
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4fac14
mov eax, dword [esp + 0x58]
inc ebx
add edi, 0x14
add ebp, 0x14
cmp ebx, dword [ecx]
jl 0x4fabc3
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x4fac07
mov ecx, dword [esp + 0x30]
call fcn.0049da60
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x30], 0
jmp 0x4fac18
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
mov edx, ebx
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov dword [ebx + 0x30], eax
lea eax, [esp + 0x14]
add dword [esi + 0x28], 4
push eax
push edi
push dword [ebp + 0x1c]
push dword [esp + 0x28]
call fcn.004fa6f0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, dword [ebp + 0x30]
xorps xmm0, xmm0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x90], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0x4fa4b0
mov dword [esp + 0x84], 0x4fa6c0
mov dword [esp + 0x94], eax
test ebx, ebx
je 0x4facdb
mov edi, dword [ebx]
add ebx, 8
test edi, edi
jle 0x4facdb
nop dword [eax]
mov edx, dword [ebx]
lea ecx, [esp + 0x7c]
call fcn.00497f50
test eax, eax
jne 0x4facd7
dec edi
add ebx, 0x14
test edi, edi
jg 0x4facc0
mov edx, dword [esp + 0x70]
test edx, edx
je 0x4face3
mov eax, dword [edx]
jmp 0x4face5
xor eax, eax
push 0
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp + 0x4c], eax
call fcn.004fa7a0
push 0
push dword [ebp + 0xc]
mov edx, eax
mov ecx, esi
call fcn.004fa7a0
mov edx, ebp
mov edi, eax
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x14], edi
mov ebx, edx
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x2c]
test dword [eax + 4], 0x100000
je 0x4fad5b
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x30]
push ecx
push dword [esp + 0x28]
mov ecx, esi
call fcn.004fa6f0
mov edi, dword [esp + 0x24]
add esp, 0x10
test edi, edi
je 0x4fad50
mov eax, dword [edi]
mov dword [ebx + 0x50], eax
mov byte [ebx + 0x60], 1
jmp 0x4fad7d
xor eax, eax
mov byte [ebx + 0x60], 1
mov dword [ebx + 0x50], eax
jmp 0x4fad7d
test edi, edi
je 0x4fad63
mov eax, dword [edi]
jmp 0x4fad65
xor eax, eax
push 0
push ecx
mov edx, edi
mov dword [ebx + 0x50], eax
mov ecx, esi
call fcn.004fa7a0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4fade6
mov ecx, dword [esp + 0x30]
push 0
push 0
call fcn.0049ca30
add esp, 8
mov edx, eax
test edi, edi
jne 0x4fada5
mov ecx, dword [esi]
call fcn.0049d610
mov edi, eax
jmp 0x4fadde
mov eax, dword [edi]
lea ebp, [eax + 1]
cmp dword [edi + 4], ebp
jge 0x4fadc0
mov ecx, dword [esi]
push edx
mov edx, edi
call fcn.0049d680
add esp, 4
mov edi, eax
jmp 0x4fadde
movups xmm0, xmmword [0x579b70]
lea eax, [eax + eax*4]
mov dword [edi], ebp
lea ecx, [edi + eax*4]
mov eax, dword [0x579b80]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], edi
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x34], eax
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
mov ecx, dword [ebp + 0x74]
cmp dword [ebp + 0x78], ecx
jg 0x4fae19
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, ebp
call fcn.004845f0
add esp, 0xc
jmp 0x4fae42
lea eax, [ecx + 1]
mov dword [ebp + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebp + 0x70]
xor ebp, ebp
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 8], edx
mov ebx, dword [ebx + 0x24]
mov edx, dword [esp + 0x18]
test ebx, ebx
jne 0x4fad13
test edi, edi
jne 0x4faee1
xor ebx, ebx
lea edx, [esp + 0x24]
mov ecx, 0x587a10
mov dword [esp + 0x24], ebx
call fcn.00463ff0
test eax, eax
mov ecx, 2
push edi
cmove ebx, ecx
mov ecx, dword [esp + 0x34]
lea eax, [ebx + 0x34]
push eax
call fcn.004600a0
mov edi, eax
add esp, 8
test edi, edi
je 0x4faed6
push 0x34
push 0
push edi
call fcn.00533fc0
or eax, 0xffffffff
mov byte [edi], 0x9b
add esp, 0xc
mov word [edi + 0x22], ax
test ebx, ebx
jne 0x4faec4
mov eax, dword [esp + 0x24]
mov ecx, 0x20800400
test eax, eax
mov dword [edi + 8], eax
mov edx, 0x10800400
cmovne ecx, edx
or dword [edi + 4], ecx
jmp 0x4faecf
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
mov word [eax], 0x30
mov dword [edi + 0x18], 1
mov ecx, dword [esi]
mov edx, edi
call fcn.0049d610
mov edi, eax
mov ecx, dword [esi]
push 0
push 0x4c
call fcn.004600a0
mov ebp, eax
lea ebx, [esp + 0xa0]
add esp, 8
test ebp, ebp
cmovne ebx, ebp
test edi, edi
jne 0x4faf1c
mov ecx, dword [esi]
mov edx, 0xb4
push edi
call fcn.0049bc50
mov ecx, dword [esi]
add esp, 4
mov edx, eax
call fcn.0049d610
mov edi, eax
mov dword [ebx + 0x1c], edi
mov byte [ebx], 0x8a
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
inc dword [esi + 0x64]
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x10], eax
xor eax, eax
mov word [ebx + 2], ax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x18], 0xffffffff
test eax, eax
jne 0x4faf8d
mov ecx, dword [esi]
push eax
push 0x50
test ecx, ecx
je 0x4faf6c
call fcn.004600a0
jmp 0x4faf71
call fcn.0045f9d0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4faf8d
push 0x50
push 0
push eax
call fcn.00533fc0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x4faff9
xor eax, eax
lea edx, [esp + 0x98]
cmp ebx, edx
mov edx, ebx
setne al
push eax
call fcn.004cfe10
add esp, 4
xor ebp, ebp
mov ecx, dword [esi]
push 0
push 0x50
call fcn.004600a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4fb037
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov dword [eax + 0x20], edi
mov edi, ebx
test ebp, ebp
je 0x4fb163
mov ecx, dword [esp + 0x30]
mov edx, ebp
push 1
call fcn.004cfe10
add esp, 4
jmp 0x4fb163
push 0x48
lea eax, [edi + 8]
mov dword [edi + 4], 1
push 0
push eax
mov dword [edi], 1
call fcn.00533fc0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov dword [edi + 0x34], 0xffffffff
mov eax, dword [edi]
lea eax, [eax + eax*8]
mov dword [edi + eax*8 - 0x38], 0
mov dword [edi + eax*8 - 0x3c], 0
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], edi
mov dword [edi + 0x1c], ebp
mov edi, eax
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4fb0ca
xor ebx, ebx
cmp dword [ecx], ebx
jle 0x4fb0c6
lea edi, [ecx + 0x34]
mov dword [esp + 0x34], eax
cmp dword [edi], 0
jge 0x4fb0ba
mov eax, dword [esi + 0x28]
mov dword [edi], eax
inc dword [esi + 0x28]
mov edx, dword [edi - 0x18]
test edx, edx
je 0x4fb0ba
mov edx, dword [edx + 0x20]
mov ecx, esi
call fcn.004b5dd0
mov ecx, dword [esp + 0x38]
inc ebx
add edi, 0x48
cmp ebx, dword [ecx]
jl 0x4fb098
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
or dword [ebp + 4], 0x8000040
mov edx, ebp
push 0x40
mov ecx, esi
call fcn.004d3d60
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x64]
and eax, 8
or dword [ebp + 4], eax
test ecx, ecx
jne 0x4fb0f6
mov ecx, 7
jmp 0x4fb165
movups xmm0, xmmword [ecx]
mov edx, dword [esp + 0x2c]
mov edi, ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
lea ecx, [esp + 0x3c]
movups xmmword [edx + 0x30], xmm0
or dword [edx + 0x1c], 0x4000
mov eax, dword [ebx + 0x20]
xorps xmm0, xmm0
mov dword [eax + 0x18], edx
mov edx, ebp
mov dword [esp + 0x3c], 0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x40], 0x4fa970
mov dword [esp + 0x44], 0x498140
mov dword [esp + 0x48], 0x498150
call fcn.00497f60
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov edx, 7
push 0
push 0xc
cmp byte [eax + 0x57], 0
cmovne ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x4fb18a
call fcn.004600a0
jmp 0x4fb18f
call fcn.0045f9d0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4fb1bc
mov eax, dword [esi + 0x80]
mov dword [ecx], eax
mov dword [esi + 0x80], ecx
mov dword [ecx + 4], edi
mov dword [ecx + 8], fcn.0045fd60
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4fb1b0
mov ecx, dword [esi]
mov edx, edi
call fcn.0045fcb0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4fb1ed
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x4fb1ed
inc dword [eax + 0x24]
mov dword [eax + 0xc], 7
pop edi
mov eax, 7
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret