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

Disassembly:
sub esp, 0x230
mov eax, dword [0x97efc0]
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.00460ab0
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 0x49f8c9
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.004179f0
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0049fbd0
mov dword [esi + 0xc], eax
lea eax, [esp + 0x34]
push eax
call fcn.004179d0
mov ebp, dword [esi + 0xc]
lea edi, [ebx + 0x18]
add esp, 0x1c
jmp 0x49fa00
mov eax, dword [ecx + 0x10]
test eax, eax
js 0x49f8d8
add eax, eax
mov ecx, dword [ebx + eax*8 + 0x64]
jmp 0x49f8da
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 + 0x5237d5]
test al, al
je 0x49f908
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.00460570
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [ebp], 0
mov dword [ebp + 4], 0
test eax, eax
je 0x49f9da
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.004a0900
push eax
push 8
push esi
mov dword [ebp + 8], eax
call fcn.004603a0
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 8
push esi
call fcn.004603a0
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.004f0550
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.004f0550
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.004eef00
mov ecx, edi
call fcn.004ef680
mov dword [esi + 0x14], edx
lea edi, [ebx + 0x18]
jmp 0x49f9fd
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 0x49fa16
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 + 0x5237e6]
test al, al
je 0x49fa2c
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x30]
jmp 0x49fa3b
mov eax, dword [ebp + 4]
test eax, eax
je 0x49fa3e
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 + 0x5237e6]
movzx edx, al
test al, al
je 0x49fa5b
test byte [ebx + edx*4 + 0x30], 4
jne 0x49fade
cmp ecx, 0xff
jne 0x49fa93
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 0x49fa8f
test byte [ebx + edx*4 + 0x30], 0x40
jne 0x49fa8f
xor al, al
jmp 0x49fad6
mov al, 1
jmp 0x49fad6
cmp ecx, 0x1bf
je 0x49facd
cmp ecx, 0x34
je 0x49facd
cmp ecx, 0x93
je 0x49facd
cmp ecx, 0xa1
je 0x49facd
cmp ecx, 3
je 0x49facd
cmp ecx, 0x1d4
je 0x49facd
mov eax, dword [edi + 0x523818]
and eax, 3
cmp al, 3
sete al
jmp 0x49fad6
mov eax, dword [ebx + edx*4 + 0x30]
shr eax, 6
and al, 1
test al, al
je 0x49fade
or dword [esi + 0x2c], 0x40
mov eax, dword [esi + 0x28]
mov eax, dword [eax]
test eax, eax
jne 0x49faed
mov eax, dword [esi + 0x34]
mov eax, dword [eax + 0x1c]
test eax, 0x1c90f
je 0x49faf8
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 0x49fb62
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 0x49fb4f
push ecx
push edx
call fcn.004611e0
mov ecx, dword [esp + 0x18]
add esp, 8
cmp ecx, eax
jb 0x49fb53
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x10]
push dword [eax + edi + 4]
push dword [eax + edi]
call fcn.004611e0
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
jmp 0x49fb53
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
inc ebp
add ebx, 8
add edi, 8
cmp ebp, dword [eax + 8]
jb 0x49fb10
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 + 0x5237e9]
test al, al
je 0x49fb9d
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x30]
cmp edx, eax
jae 0x49fb9d
mov dword [esi + 0x18], eax
imul eax, dword [ecx + 0x18], 0x64
movzx eax, byte [eax + 0x5237ea]
mov eax, dword [ecx + eax*4 + 0x30]
jmp 0x49fbab
push 0
push edx
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004ef900
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.004eec95
add esp, 0x230
ret