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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
push dword [esp + 0x78]
push ebx
push dword [esp + 0x70]
call fcn.0049c170
add esp, 0xc
test al, al
je 0x49e67d
cmp dword [ebx + 0x34], 0
jne 0x49e67d
mov edi, dword [esp + 0x6c]
push edi
call fcn.0049ca50
mov esi, dword [esp + 0x74]
push esi
mov dword [esp + 0x2c], eax
call fcn.0049ca50
mov ecx, eax
add esp, 8
mov eax, dword [edi + 0x24]
mov dword [esp + 0x38], ecx
mov al, byte [eax + 0x30]
movzx ebp, al
mov byte [esp + 0x12], al
mov eax, dword [esi + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebp
imul ebp, dword [esp + 0x24]
mov al, byte [eax + 0x30]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x30], eax
imul eax, ecx
shr ebp, 3
shr eax, 3
cmp ebp, 4
je 0x49e231
cmp ebp, 8
jne 0x49e67d
cmp eax, 4
je 0x49e23f
cmp eax, 8
jne 0x49e67d
cmp ebp, eax
jne 0x49e67d
mov eax, dword [edi + 0x18]
xor edx, edx
div ebp
test edx, edx
jne 0x49e67d
mov eax, dword [edi + 0x1c]
div ebp
test edx, edx
jne 0x49e67d
mov eax, dword [esi + 0x18]
div ebp
test edx, edx
jne 0x49e67d
mov eax, dword [esi + 0x1c]
div ebp
test edx, edx
jne 0x49e67d
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov esi, ebp
mov dword [esp + 0x1c], eax
sub eax, dword [edi + 0x10]
mov dword [esp + 0x28], ecx
sbb ecx, dword [edi + 0x14]
push edx
shl esi, 6
push esi
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], esi
call fcn.004e6430
or eax, edx
jne 0x49e2b6
mov byte [esp + 0x11], 1
jmp 0x49e2c1
mov byte [esp + 0x11], 0
mov esi, ebp
mov dword [esp + 0x20], ebp
push 0
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004e6430
or eax, edx
jne 0x49e67d
imul edx, esi, 0xff
cmp dword [esp + 0x18], eax
ja 0x49e67d
jb 0x49e2f5
cmp dword [esp + 0x14], edx
ja 0x49e67d
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x49e67d
mov eax, dword [esp + 0x1c]
jb 0x49e30f
cmp eax, edx
ja 0x49e67d
cmp byte [esp + 0x11], 0
je 0x49e328
push 0
push esi
push ecx
push eax
call fcn.004e6430
or eax, edx
jne 0x49e67d
cmp byte [ebx + 0x30], 0
je 0x49e39b
cmp byte [esp + 0x12], 0x20
mov edx, 1
jne 0x49e33f
or esi, 0xffffffff
jmp 0x49e34b
mov ecx, dword [esp + 0x2c]
mov esi, edx
and ecx, 0x1f
shl esi, cl
dec esi
mov ecx, dword [edi + 0x24]
imul eax, dword [ecx + 0x18], 0x64
movzx eax, byte [eax + 0x51986e]
cmp dword [ecx + eax*4 + 0x30], esi
jne 0x49e67d
cmp byte [esp + 0x13], 0x20
jne 0x49e36f
or edx, 0xffffffff
jmp 0x49e379
mov ecx, dword [esp + 0x30]
and ecx, 0x1f
shl edx, cl
dec edx
mov ecx, dword [esp + 0x34]
imul eax, dword [ecx + 0x18], 0x64
movzx eax, byte [eax + 0x51986e]
cmp dword [ecx + eax*4 + 0x30], edx
jne 0x49e67d
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x20]
jmp 0x49e39e
mov esi, dword [ebx + 0x20]
push dword [esi + 8]
call fcn.004073b0
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
movups xmmword [esp + 0x40], xmm0
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x64], eax
movzx eax, byte [ebx + 0x30]
mov dword [esp + 0x4c], ecx
add eax, 6
movups xmm0, xmmword [esp + 0x40]
mov ecx, dword [ebx + 0x24]
add eax, eax
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 3
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esp + 0x54], xmm0
mov esi, dword [ecx + eax*8]
imul eax, dword [ecx + 0x18], 0x64
movzx eax, byte [eax + 0x51986d]
mov eax, dword [ecx + eax*4 + 0x30]
cdq
push edx
push eax
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.004101b0
add esp, 0x14
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ebx, edi
je 0x49e438
mov eax, dword [esp + 0x14]
neg eax
cdq
push edx
push eax
push ecx
lea eax, [esp + 0x5c]
push eax
call fcn.004101b0
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp byte [ebx + 0x30], 0
je 0x49e53f
mov eax, dword [edi + 0x28]
mov edx, dword [esp + 0x70]
mov ecx, dword [eax + 0x18]
mov eax, dword [edi + 0x24]
add ecx, 6
add ecx, ecx
lea edi, [ebp*8]
push edi
mov ebx, dword [eax + ecx*8]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x24]
add ecx, 6
add ecx, ecx
push dword [eax + ecx*8]
lea eax, [esp + 0x58]
push eax
call fcn.0049ce30
push edi
mov esi, eax
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.0049ce30
push esi
push eax
lea eax, [esp + 0x70]
push 0x1b1
push eax
call fcn.0041cdb0
push 0x23c
push dword [esp + 0x88]
mov esi, eax
call fcn.00409600
xorps xmm0, xmm0
mov edi, eax
mov eax, dword [esp + 0x4c]
add esp, 0x30
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x48], esi
movups xmm0, xmmword [esp + 0x3c]
push 0
push dword [esp + 0x24]
movups xmmword [edi + 0x54], xmm0
push dword [esp + 0x20]
xorps xmm0, xmm0
push dword [esp + 0x20]
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x58], eax
imul eax, dword [edi + 0x18], 0x64
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [edi + 0x64], xmm0
movzx eax, byte [eax + 0x519888]
mov dword [edi + eax*4 + 0x30], 0
call fcn.004e63c0
movzx ecx, al
imul eax, dword [edi + 0x18], 0x64
push edi
movzx eax, byte [eax + 0x519889]
mov dword [edi + eax*4 + 0x30], ecx
imul eax, dword [edi + 0x18], 0x64
movzx ecx, byte [esp + 0x15]
movzx eax, byte [eax + 0x51988a]
mov dword [edi + eax*4 + 0x30], ecx
lea eax, [esp + 0x54]
push eax
call fcn.0041d130
mov ebx, dword [esp + 0x7c]
jmp 0x49e659
push 0x19b
push dword [esp + 0x60]
call fcn.00409600
mov esi, eax
lea ecx, [ebp*8]
push ecx
push 2
lea edi, [esi + 0x1c]
push edi
push esi
call fcn.00407af0
mov eax, dword [esp + 0x34]
xorps xmm0, xmm0
add esp, 0x18
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x48], eax
imul eax, dword [esi + 0x18], 0x64
movups xmm0, xmmword [esp + 0x3c]
push 0
push dword [esp + 0x24]
movups xmmword [esi + 0x54], xmm0
push dword [esp + 0x20]
movzx eax, byte [eax + 0x519888]
push dword [esp + 0x20]
mov dword [esi + eax*4 + 0x30], 0
call fcn.004e63c0
movzx ecx, al
imul eax, dword [esi + 0x18], 0x64
push esi
movzx eax, byte [eax + 0x519889]
mov dword [esi + eax*4 + 0x30], ecx
imul eax, dword [esi + 0x18], 0x64
movzx ecx, byte [esp + 0x15]
movzx eax, byte [eax + 0x51988a]
mov dword [esi + eax*4 + 0x30], ecx
lea eax, [esp + 0x54]
push eax
call fcn.0041d130
push 1
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
lea eax, [esp + 0x60]
push edi
push eax
call fcn.004119a0
push dword [esp + 0x3c]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0049ce30
push eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x24]
add eax, 0x1c
push eax
call fcn.00407b40
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 1
push eax
lea eax, [esp + 0x84]
push edi
push eax
call fcn.004119a0
push dword [esp + 0x74]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0049ce30
mov edx, dword [esp + 0xb8]
add esp, 0x48
push eax
mov eax, dword [edx + 0x24]
add eax, 0x1c
push eax
call fcn.00407b40
add esp, 8
push dword [ebx + 0x20]
call fcn.004173f0
mov eax, dword [esp + 0x7c]
push dword [eax + 0x20]
call fcn.004173f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x54
ret