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

Disassembly:
sub esp, 0x230
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push ebx
mov ebx, dword [esp + 0x240]
push ebp
push esi
push edi
push 0x38
push eax
call fcn.00460c10
mov ecx, dword [esp + 0x250]
mov esi, eax
add esp, 8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ecx
mov eax, dword [ecx + 0x18]
shr eax, 0x1f
xor al, 1
mov byte [esi + 0x30], al
mov eax, dword [ecx + 0x14]
test eax, eax
js 0x49f9e9
add eax, eax
xor ecx, ecx
push ecx
movups xmm0, xmmword [ebx + eax*8 + 0x58]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmovne eax, ecx
push eax
mov dword [esi + 0x34], eax
lea eax, [esp + 0x24]
push eax
call fcn.00417ab0
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0049fcf0
mov dword [esi + 0xc], eax
lea eax, [esp + 0x34]
push eax
call fcn.00417a90
mov ebp, dword [esi + 0xc]
lea edi, [ebx + 0x18]
add esp, 0x1c
jmp 0x49fb20
mov eax, dword [ecx + 0x10]
test eax, eax
js 0x49f9f8
add eax, eax
mov ecx, dword [ebx + eax*8 + 0x64]
jmp 0x49f9fa
xor ecx, ecx
imul eax, dword [ebx + 0x18], 0x64
lea edi, [ebx + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
movlpd qword [esp + 0x14], xmm0
mov al, byte [eax + 0x52382d]
test al, al
je 0x49fa28
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x30]
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push 0x14
push esi
call fcn.004606d0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [ebp], 0
mov dword [ebp + 4], 0
test eax, eax
je 0x49fafa
lea ecx, [esp + 0x3c]
mov dword [ebp + 0xc], ecx
lea ecx, [esp + 0x13c]
mov dword [ebp + 0x10], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 1
push 0
push eax
push 0x20
push 0
push ebp
call fcn.004a0a20
push eax
push 8
push esi
mov dword [ebp + 8], eax
call fcn.00460500
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 8
push esi
call fcn.00460500
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
shl eax, 3
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebp + 0xc]
call fcn.004f0720
mov eax, dword [ebp + 8]
add esp, 0x44
shl eax, 3
push eax
lea eax, [esp + 0x140]
push eax
push dword [ebp + 0x10]
call fcn.004f0720
mov ecx, dword [esp + 0x1c]
mov edi, 0x40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], ebp
movzx ecx, byte [ecx + 0x11]
sub edi, ecx
mov ecx, edi
call fcn.004ef0d0
mov ecx, edi
call fcn.004ef850
mov dword [esi + 0x14], edx
lea edi, [ebx + 0x18]
jmp 0x49fb1d
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
js 0x49fb36
add eax, eax
mov eax, dword [ebx + eax*8 + 0x64]
mov dword [ebp], eax
mov ebp, dword [esi + 0xc]
imul eax, dword [edi], 0x64
mov al, byte [eax + 0x52383e]
test al, al
je 0x49fb4c
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x30]
jmp 0x49fb5b
mov eax, dword [ebp + 4]
test eax, eax
je 0x49fb5e
mov eax, dword [eax + 0x20]
and eax, 0x1ff
mov dword [esi + 0x2c], eax
mov ecx, dword [edi]
imul edi, ecx, 0x64
mov al, byte [edi + 0x52383e]
movzx edx, al
test al, al
je 0x49fb7b
test byte [ebx + edx*4 + 0x30], 4
jne 0x49fbfe
cmp ecx, 0x100
jne 0x49fbb3
movups xmm0, xmmword [ebx + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmovne eax, ecx
test dword [eax + 0x1c], 0x487
jne 0x49fbaf
test byte [ebx + edx*4 + 0x30], 0x40
jne 0x49fbaf
xor al, al
jmp 0x49fbf6
mov al, 1
jmp 0x49fbf6
cmp ecx, 0x1c0
je 0x49fbed
cmp ecx, 0x34
je 0x49fbed
cmp ecx, 0x94
je 0x49fbed
cmp ecx, 0xa2
je 0x49fbed
cmp ecx, 3
je 0x49fbed
cmp ecx, 0x1d5
je 0x49fbed
mov eax, dword [edi + 0x523870]
and eax, 3
cmp al, 3
sete al
jmp 0x49fbf6
mov eax, dword [ebx + edx*4 + 0x30]
shr eax, 6
and al, 1
test al, al
je 0x49fbfe
or dword [esi + 0x2c], 0x40
mov eax, dword [esi + 0x28]
mov eax, dword [eax]
test eax, eax
jne 0x49fc0d
mov eax, dword [esi + 0x34]
mov eax, dword [eax + 0x1c]
test eax, 0x1c90f
je 0x49fc18
or dword [esi + 0x2c], 2
mov eax, dword [esi + 0xc]
xor ebp, ebp
mov ecx, 0x1f
mov dword [esp + 0x10], ecx
cmp dword [eax + 8], ebp
jbe 0x49fc82
xor ebx, ebx
xor edi, edi
nop
mov eax, dword [eax + 0x10]
mov edx, dword [ebx + eax]
mov ecx, dword [ebx + eax + 4]
mov eax, edx
or eax, ecx
je 0x49fc6f
push ecx
push edx
call fcn.00461340
mov ecx, dword [esp + 0x18]
add esp, 8
cmp ecx, eax
jb 0x49fc73
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x10]
push dword [eax + edi + 4]
push dword [eax + edi]
call fcn.00461340
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
jmp 0x49fc73
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
inc ebp
add ebx, 8
add edi, 8
cmp ebp, dword [eax + 8]
jb 0x49fc30
dec ecx
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x18], edx
imul eax, dword [ecx + 0x18], 0x64
mov al, byte [eax + 0x523841]
test al, al
je 0x49fcbd
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x30]
cmp edx, eax
jae 0x49fcbd
mov dword [esi + 0x18], eax
imul eax, dword [ecx + 0x18], 0x64
movzx eax, byte [eax + 0x523842]
mov eax, dword [ecx + eax*4 + 0x30]
jmp 0x49fccb
push 0
push edx
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004efad0
mov ecx, dword [esp + 0x23c]
pop edi
mov dword [esi + 0x1c], eax
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eee65
add esp, 0x230
ret