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

Disassembly:
sub esp, 0x4e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4f4]
lea eax, [esp + 0x98]
push edi
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x38], esi
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x504]
call fcn.0049d800
mov edx, dword [esp + 0x80]
add esp, 0x14
mov ecx, dword [esp + 0x70]
sub ecx, edx
mov ebx, dword [esp + 0x78]
sub ebx, dword [esp + 0x70]
shl ecx, 0xb
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x74]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
sub ebx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x80]
sar ebx, 5
shl edx, 0x10
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x88]
sub ebx, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x7c]
sub ecx, edx
shl ecx, 0xb
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x84]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
sub ebx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x90]
shl edx, 0x10
sar ebx, 5
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x98]
sub ebx, dword [esp + 0x90]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x8c]
sub ecx, edx
shl ecx, 0xb
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x94]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
sub ebx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa0]
shl edx, 0x10
sar ebx, 5
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x9c]
sub ecx, edx
shl ecx, 0xb
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0xa8]
sub ebx, dword [esp + 0xa0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xa4]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
mov dword [esp + 0x40], ecx
sub ebx, ecx
mov eax, dword [esp + 0x4f4]
mov ebp, dword [0xc27e98]
shl edx, 0x10
mov dword [esp + 0x20], edx
movzx edx, al
movzx eax, ah
shr eax, 1
mov ecx, eax
sar ebx, 5
and ecx, 7
shr edx, 1
mov edi, ecx
mov dword [esp + 0x64], ebx
mov ebx, edx
shl edi, 8
and ebx, 7
mov dword [esp + 0x44], eax
add edi, ebx
shl ecx, 0xd
shl edi, 5
lea eax, [edx + 1]
add edi, ebp
shl eax, 5
and eax, 0xe0
mov dword [esp + 0x68], edx
sub ecx, edi
mov dword [esp + 0x10], eax
add ecx, eax
lea edx, [esp + 0xac]
add ebp, ecx
mov ecx, 0x20
nop dword [eax + eax]
mov al, byte [edi + ebp]
lea edx, [edx + 0x21]
lea edi, [edi + 0x100]
movups xmm0, xmmword [edi - 0x100]
movups xmmword [edx - 0x21], xmm0
movups xmm0, xmmword [edi - 0xf0]
movups xmmword [edx - 0x11], xmm0
mov byte [edx - 1], al
sub ecx, 1
jne 0x49ca80
mov eax, dword [esp + 0x44]
mov ecx, dword [0xc27e98]
inc eax
mov ebp, dword [esp + 0x18]
shl eax, 0xd
and eax, 0xe000
shl ebx, 5
add ebx, eax
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0x20
movups xmm0, xmmword [ebx + ecx]
mov al, byte [eax + ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebx + ecx + 0x10]
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0xac]
movups xmmword [edx + 0x10], xmm0
mov byte [edx + 0x20], al
mov eax, dword [esp + 0x1c]
mov esi, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x20
nop dword [eax]
mov eax, dword [0xc27e90]
mov ecx, ebp
movsx edx, byte [ebx]
sar ecx, 0x10
movsx edi, word [eax + ecx*2]
mov eax, ebp
add ebp, dword [esp + 0x28]
mov ecx, esi
imul edi, edx
sar eax, 8
and eax, 0xffffff00
sar ecx, 0x10
sar edi, 2
and edi, 0xffffff00
add edi, eax
movsx eax, byte [ebx + 0x22]
sub eax, edx
sar eax, 2
add eax, ecx
test eax, 0xff00
je 0x49cb69
test eax, eax
jns 0x49cb5c
xor eax, eax
jmp 0x49cb69
cmp eax, 0xff
mov ecx, 0xff
cmovg eax, ecx
mov edx, dword [esp + 0x2c]
add edi, eax
cmp edi, 0x48000
mov eax, 0x47fff
cmovge edi, eax
add esi, dword [esp + 0x24]
mov eax, dword [0xc280cc]
xor ecx, ecx
test edi, edi
cmovns ecx, edi
mov edi, dword [esp + 0x30]
inc ebx
movzx ecx, byte [ecx + eax]
mov eax, edx
add ecx, dword [0xc27e94]
sar eax, 0xb
and eax, 0xffffff80
movzx ecx, byte [eax + ecx]
mov eax, edi
sar eax, 8
and eax, 0xffffff00
mov al, byte [ecx + eax + 0x59f6c8]
mov ecx, dword [esp + 0x34]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x40]
add edi, edx
sub dword [esp + 0x38], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
jne 0x49cb10
mov esi, dword [esp + 0x50]
inc ebx
add dword [esp + 0x1c], esi
mov esi, dword [esp + 0x54]
add dword [esp + 0x20], esi
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add dword [esp + 0x24], esi
add ecx, dword [esp + 0x48]
add ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x5c]
add eax, dword [esp + 0x60]
add edx, dword [esp + 0x64]
add dword [esp + 0x28], esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jne 0x49caf3
test dword [0x5c958d], 0x10000
mov esi, dword [esp + 0x4f8]
jne 0x49cd45
push 0x400
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.004e4d50
mov eax, dword [esp + 0x50]
add esp, 0xc
shl eax, 7
add eax, dword [esp + 0x68]
lea ecx, [eax + eax*2]
mov eax, dword [0xc27e88]
mov eax, dword [eax + ecx*4 + 4]
test eax, eax
js 0x49ccc7
mov edi, dword [0xc27e84]
nop word [eax + eax]
movzx ecx, word [edi + eax*8]
lea edx, [edi + eax*8]
movzx eax, word [edx + 2]
shr eax, 4
shr ecx, 4
and eax, 0x1f
and ecx, 0x1f
shl eax, 5
add eax, ecx
lea ecx, [esp + 0xac]
add ecx, eax
add byte [ecx], 3
cmp byte [ecx], 0xc
jbe 0x49ccc0
mov byte [ecx], 0xc
mov eax, dword [edx + 4]
test eax, eax
jns 0x49cc90
lea edx, [esp + 0xac]
mov ebx, 0x20
mov edi, 8
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 1]
mov byte [esi], al
movzx eax, byte [esi + 1]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 2]
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 3]
add edx, 4
mov byte [esi + 2], al
movzx eax, byte [esi + 3]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
mov byte [esi + 3], al
add esi, 4
sub edi, 1
jne 0x49cce0
sub ebx, 1
jne 0x49ccd3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e0
ret
sub esp, 0x4bc
test byte [0x5c9591], 4
je 0x49d15a
add esp, 0x4bc
jmp 0x49c8d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4d0]
lea eax, [esp + 0x74]
push edi
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x30], esi
push eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x4dc]
call fcn.0049df50
mov edx, dword [esp + 0x68]
add esp, 0x10
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
sub ecx, edx
sub ebx, dword [esp + 0x5c]
shl ecx, 0xb
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
sub ebx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x6c]
sar ebx, 5
shl edx, 0x10
mov eax, dword [esp + 0x4d0]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x68]
sub ecx, edx
shl ecx, 0xb
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x70]
sub ecx, edx
shl ebx, 0xb
shl ecx, 0xb
sub ebx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x7c]
shl edx, 0x10
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x78]
sub ecx, edx
shl ecx, 0xb
sar ebx, 5
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x80]
sub ecx, edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x84]
sub ebx, dword [esp + 0x7c]
shl edx, 0x10
shl ecx, 0xb
shl ebx, 0xb
mov dword [esp + 0x1c], edx
sub ebx, ecx
movzx edx, al
movzx eax, ah
shr eax, 1
mov dword [esp + 0x34], ecx
mov ecx, eax
sar ebx, 5
and ecx, 7
shr edx, 1
mov edi, ecx
mov dword [esp + 0x50], ebx
mov ebx, edx
and ebx, 7
shl edi, 8
add edi, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x38], eax
shl edi, 5
mov ebp, dword [0xc27e98]
lea eax, [edx + 1]
shl ecx, 0xd
lea edx, [esp + 0x88]
add edi, ebp
shl eax, 5
and eax, 0xe0
sub ecx, edi
add ecx, eax
mov dword [esp + 0x10], eax
add ebp, ecx
mov ecx, 0x20
mov al, byte [edi + ebp]
lea edx, [edx + 0x21]
lea edi, [edi + 0x100]
movups xmm0, xmmword [edi - 0x100]
movups xmmword [edx - 0x21], xmm0
movups xmm0, xmmword [edi - 0xf0]
movups xmmword [edx - 0x11], xmm0
mov byte [edx - 1], al
sub ecx, 1
jne 0x49d291
mov eax, dword [esp + 0x38]
mov ecx, dword [0xc27e98]
inc eax
shl eax, 0xd
and eax, 0xe000
shl ebx, 5
add ebx, eax
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0x20
movups xmm0, xmmword [ebx + ecx]
mov al, byte [eax + ecx]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebx + ecx + 0x10]
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x88]
movups xmmword [edx + 0x10], xmm0
mov byte [edx + 0x20], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, ecx
mov ebp, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x20
nop dword [eax + eax]
mov eax, dword [0xc27e90]
mov ecx, ebp
movsx edx, byte [ebx]
sar ecx, 0x10
movsx edi, word [eax + ecx*2]
mov eax, ebp
add ebp, dword [esp + 0x24]
mov ecx, esi
imul edi, edx
sar eax, 8
and eax, 0xffffff00
sar ecx, 0x10
sar edi, 2
and edi, 0xffffff00
add edi, eax
movsx eax, byte [ebx + 0x22]
sub eax, edx
sar eax, 2
add eax, ecx
test eax, 0xff00
je 0x49d379
test eax, eax
jns 0x49d36c
xor eax, eax
jmp 0x49d379
cmp eax, 0xff
mov ecx, 0xff
cmovg eax, ecx
mov edx, dword [esp + 0x28]
add edi, eax
cmp edi, 0x48000
mov eax, 0x47fff
cmovge edi, eax
add esi, dword [esp + 0x20]
mov eax, dword [0xc280cc]
xor ecx, ecx
test edi, edi
cmovns ecx, edi
mov edi, dword [esp + 0x2c]
inc ebx
movzx ecx, byte [ecx + eax]
mov eax, edx
add ecx, dword [0xc27e94]
sar eax, 0xb
and eax, 0xffffff80
mov al, byte [eax + ecx]
mov byte [edi], al
inc edi
mov eax, dword [esp + 0x34]
add edx, eax
sub dword [esp + 0x30], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
jne 0x49d320
mov ebp, dword [esp + 0x44]
inc ebx
add dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add dword [esp + 0x20], ebp
add ecx, dword [esp + 0x3c]
add edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
add dword [esp + 0x24], ebp
sub dword [esp + 0x10], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
jne 0x49d304
test dword [0x5c958d], 0x10000
mov esi, dword [esp + 0x4d4]
jne 0x49d525
push 0x400
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.004e4d50
mov eax, dword [esp + 0x44]
add esp, 0xc
shl eax, 7
add eax, dword [esp + 0x54]
lea ecx, [eax + eax*2]
mov eax, dword [0xc27e88]
mov eax, dword [eax + ecx*4 + 4]
test eax, eax
js 0x49d4a7
mov edi, dword [0xc27e84]
nop word [eax + eax]
movzx ecx, word [edi + eax*8]
lea edx, [edi + eax*8]
movzx eax, word [edx + 2]
shr eax, 4
shr ecx, 4
and eax, 0x1f
and ecx, 0x1f
shl eax, 5
add eax, ecx
lea ecx, [esp + 0x88]
add ecx, eax
add byte [ecx], 3
cmp byte [ecx], 0xc
jbe 0x49d4a0
mov byte [ecx], 0xc
mov eax, dword [edx + 4]
test eax, eax
jns 0x49d470
lea edx, [esp + 0x88]
mov ebx, 0x20
mov edi, 8
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 1]
mov byte [esi], al
movzx eax, byte [esi + 1]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 2]
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
movzx ecx, byte [edx + 3]
add edx, 4
mov byte [esi + 2], al
movzx eax, byte [esi + 3]
shl ecx, 8
movzx eax, byte [ecx + eax + 0x5a16c8]
mov byte [esi + 3], al
add esi, 4
sub edi, 1
jne 0x49d4c0
sub ebx, 1
jne 0x49d4b3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4bc
ret