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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, dword [edi - 0xbc]
push esi
mov dword [esp + 0x1c], esi
call fcn.004a9050
mov edx, dword [esi]
add esp, 0xc
mov esi, dword [ebp + 0x10]
shl esi, 4
add esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], esi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x4f27c3
nop dword [eax + eax]
movzx edi, cx
shl edi, 4
add edi, edx
mov dword [esp + 0xc], edi
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x4f27a0
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, edi
call fcn.004e5930
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, eax
shr edx, 0x1c
cmp edx, 2
je 0x4f2da7
test eax, 0xfc000000
jne 0x4f2800
cmp ecx, 4
je 0x4f2da7
cmp ecx, 8
je 0x4f2da7
mov esi, eax
mov edx, 0x7fff
and esi, 0x100000
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
je 0x4f28d8
mov eax, dword [edi + 0x64]
mov edx, dword [eax + 4]
test edx, edx
je 0x4f2e2c
cmp dword [eax + 8], 0
jne 0x4f2e2c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
add ecx, 0x90
mov eax, dword [eax]
add eax, 8
push eax
push edx
push 0
push ecx
push edi
call fcn.004f49d0
push 0
push dword [esp + 0x24]
mov esi, eax
push dword [esp + 0x2c]
call fcn.004a98a0
push 1
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x38]
call fcn.004a98a0
mov ecx, dword [ebp + 8]
add esp, 0x2c
sub eax, edi
mov edx, eax
call fcn.004e5930
mov ecx, dword [ebp + 8]
mov edx, 0x3793
movzx eax, ax
mov word [ecx + 0x7c], dx
mov word [ecx + 0x78], si
mov word [ecx + 0x7a], ax
call fcn.004e9100
mov edx, edi
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004e5930
movzx ecx, ax
mov eax, 0x3593
mov word [edi + 0x7a], cx
mov ecx, edi
mov word [edi + 0x7c], ax
mov word [edi + 0x78], si
call fcn.004e9100
mov ecx, dword [edi + 0x64]
mov esi, dword [esp + 0x20]
mov dword [ecx + 4], 0
jmp 0x4f28ed
and eax, 0xf0000
cmp eax, 0x30000
jbe 0x4f28f3
mov edx, ecx
mov ecx, edi
call fcn.004e5930
mov edx, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x24]
mov eax, 0x538a
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7c], ax
mov word [edi + 0x7a], dx
call fcn.004e9100
cmp dword [esp + 0x14], 0x80
mov dword [esp + 0x1c], eax
ja 0x4f2ceb
test esi, esi
jne 0x4f2ceb
mov ecx, dword [edi + 0x64]
cmp dword [ecx + 4], esi
je 0x4f2958
cmp dword [ecx + 8], esi
jne 0x4f2958
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
add eax, 8
push eax
push esi
push dword [esp + 0x18]
call fcn.004de8d0
add esp, 0xc
test eax, eax
je 0x4f2c73
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0x1c
cmp eax, 3
jne 0x4f2a94
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
movzx esi, cx
shl esi, 4
add esi, edx
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x1c
cmp eax, 8
je 0x4f2972
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], edx
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], ecx
movlpd qword [esp + 0x30], xmm0
test eax, eax
je 0x4f29b3
cmp eax, 2
jne 0x4f2ceb
mov ecx, dword [esp + 0x14]
mov eax, edx
shl eax, 4
cmp eax, ecx
jb 0x4f2ceb
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x4f2d72
nop word [eax + eax]
lea edx, [eax + 8]
mov ecx, edi
call fcn.004e5930
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e9100
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x4f2a32
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
lea ecx, [ecx + eax*8]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x4f2a65
cmp eax, 2
je 0x4f2a61
cmp dword [esi], 0x10000000
jae 0x4f2a52
xor edx, edx
mov ecx, edi
call fcn.004e5930
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
jmp 0x4f2a69
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
mov dword [esp + 0xc], eax
jmp 0x4f2a69
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ecx
push eax
push dword [esp + 0x30]
push esi
push edi
call fcn.004f49d0
mov eax, dword [esp + 0x38]
add esp, 0x14
add eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jb 0x4f29e0
jmp 0x4f2d72
cmp eax, 1
jne 0x4f2c6f
mov eax, dword [edi + 0x64]
cmp dword [eax + 4], 0
jne 0x4f2b21
movzx esi, word [edx + 8]
test esi, esi
je 0x4f2b21
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
nop dword [eax + eax]
shl esi, 4
add eax, esi
mov dword [esp + 0x2c], eax
movzx esi, word [eax + 8]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x1c
cmp eax, 9
jne 0x4f2b0a
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xc], 0
je 0x4f2b13
mov edi, dword [esp + 0x24]
movzx eax, cx
add eax, eax
mov ecx, dword [edi + eax*8]
mov eax, ecx
shr eax, 0x1c
cmp eax, 8
je 0x4f2ae7
mov edi, dword [ebp + 8]
test eax, eax
je 0x4f2b13
cmp eax, 2
je 0x4f2b13
cmp eax, 5
jmp 0x4f2b0d
cmp eax, 0xb
jne 0x4f2ceb
mov eax, dword [esp + 0x24]
test esi, esi
jne 0x4f2ac0
movzx eax, word [edx + 8]
jmp 0x4f2b2d
movzx eax, word [edx + 8]
test eax, eax
je 0x4f2d72
mov dword [esp + 0x18], 8
mov dword [esp + 0x24], 4
nop dword [eax]
mov ecx, dword [esp + 0x10]
add eax, eax
mov edx, dword [ecx]
lea esi, [edx + eax*8]
movzx eax, word [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1c
mov dword [esp + 0x2c], esi
cmp ecx, 9
jne 0x4f2c55
cmp dword [esi + 0xc], 0
lea ecx, [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x38], xmm0
je 0x4f2c5e
movzx esi, ax
shl esi, 4
add esi, edx
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1c
cmp ecx, 8
je 0x4f2b82
test ecx, ecx
je 0x4f2ba8
cmp ecx, 2
je 0x4f2ba8
cmp ecx, 5
jne 0x4f2e2c
mov eax, dword [edi + 0x64]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4f2bd9
mov eax, dword [ebp + 0xc]
add edx, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov eax, dword [eax]
add eax, ecx
add ecx, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
jmp 0x4f2bf5
cmp ecx, 2
jne 0x4f2be8
mov dword [esp + 0x20], 0x7fff
jmp 0x4f2bf5
xor edx, edx
mov ecx, edi
call fcn.004e5930
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [edx + 4]
add edx, 8
call fcn.004e5930
movzx ecx, ax
mov eax, 0x2905
mov word [edi + 0x7c], ax
mov eax, dword [esp + 0x1c]
mov word [edi + 0x7a], cx
mov ecx, edi
mov word [edi + 0x78], ax
call fcn.004e9100
push dword [esp + 0x28]
push dword [esp + 0x24]
push eax
push esi
push edi
call fcn.004f49d0
mov edx, dword [esp + 0x20]
add esp, 0x14
test dword [edx], 0x800000
je 0x4f2c5e
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
je 0x4f2d72
jmp 0x4f2e2c
cmp ecx, 0xb
jne 0x4f2e2c
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4f2b40
jmp 0x4f2d72
mov esi, dword [esp + 0xc]
mov edx, 8
mov ecx, edi
call fcn.004e5930
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e9100
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 4]
test edx, edx
je 0x4f2cc3
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, 8
push ecx
push edx
push eax
push esi
push edi
call fcn.004f49d0
jmp 0x4f2d6f
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
xor edx, edx
movlpd qword [esp + 0x3c], xmm0
mov ecx, edi
call fcn.004e5930
push eax
push dword [esp + 0x38]
push esi
push edi
call fcn.004f49d0
jmp 0x4f2d6f
mov eax, dword [edi + 0x64]
cmp dword [eax + 4], 0
jne 0x4f2e2c
mov edx, 8
mov ecx, edi
call fcn.004e5930
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e9100
cmp dword [esp + 0x18], 0x7fff
mov esi, eax
jne 0x4f2d3e
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004e5930
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, 3
shr ecx, 0x10
and ecx, 0xf
cmp ecx, eax
cmovb ecx, eax
mov eax, 1
shl eax, cl
xor edx, edx
push eax
mov ecx, edi
call fcn.004e5930
push eax
push dword [esp + 0x20]
push esi
push edi
call fcn.004f4ef0
add esp, 0x14
mov eax, dword [edi + 0x64]
mov esi, dword [esp + 0x1c]
push 2
push dword [ebp + 0x10]
mov dword [eax], esi
push dword [esp + 0x18]
call fcn.004a93d0
add esp, 0xc
test eax, eax
je 0x4f2e26
push eax
push 0
push esi
push edi
call fcn.004f50c0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4f2dd0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 8
push eax
push dword [esp + 0x34]
push 0
push esi
push edi
call fcn.004f49d0
add esp, 0x14
jmp 0x4f2e05
cmp edx, 2
jne 0x4f2de1
push 0
push 0x19
push edi
call fcn.004e5f60
jmp 0x4f2e02
cmp ecx, 4
jne 0x4f2df1
xor edx, edx
mov ecx, edi
call fcn.004e5930
jmp 0x4f2e05
push 0
push 0
push edi
mov byte [edi + 0x134], 1
call fcn.004e5dd0
add esp, 0xc
mov ecx, 0x548a
mov word [edi + 0x7a], ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x24]
mov word [edi + 0x78], cx
mov ecx, edi
call fcn.004e9100
mov ecx, dword [edi + 0x64]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x16
push edi
call fcn.004aaa80
int3