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

Disassembly:
sub esp, 0x1c0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1d4]
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 + 0x1e4]
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, 0xc
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x74]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
sar ebx, 4
shl edx, 0x10
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x88]
sub ebx, dword [esp + 0x80]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
sub ecx, edx
shl ecx, 0xc
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x84]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x90]
shl edx, 0x10
sar ebx, 4
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x98]
sub ebx, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x8c]
sub ecx, edx
shl ecx, 0xc
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x94]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa0]
shl edx, 0x10
sar ebx, 4
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x9c]
sub ecx, edx
shl ecx, 0xc
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, 0xc
shl ecx, 0xc
mov dword [esp + 0x40], ecx
sub ebx, ecx
mov eax, dword [esp + 0x1d4]
movzx ecx, al
shl edx, 0x10
shr ecx, 1
movzx eax, ah
shr eax, 1
sar ebx, 4
mov ebp, eax
mov dword [esp + 0x24], edx
and ebp, 7
mov dword [esp + 0x68], ecx
mov edx, ebp
mov dword [esp + 0x64], ebx
mov ebx, ecx
inc ecx
shl edx, 8
and ebx, 7
shl ecx, 5
add edx, ebx
shl ebp, 0xd
and ecx, 0xe0
shl edx, 5
add edx, dword [0xc27e98]
add ebp, ecx
add ebp, dword [0xc27e98]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], 0x10
nop dword [eax]
mov edi, 0x10
mov al, byte [edx]
add edx, 2
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x49c5f5
mov al, byte [ebp]
add edx, 0x1e0
mov byte [ecx], al
add ebp, 0x200
inc ecx
sub dword [esp + 0x10], 1
jne 0x49c5f0
mov edi, dword [esp + 0x44]
mov edx, 0x10
mov ebp, dword [0xc27e98]
inc edi
shl edi, 0xd
and edi, 0xe000
shl ebx, 5
add ebx, edi
add ebx, ebp
nop dword [eax + eax]
mov al, byte [ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea ebx, [ebx + 2]
sub edx, 1
jne 0x49c640
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0xac]
add eax, edi
mov dword [esp + 0x14], 0x10
mov al, byte [eax + ebp]
mov ebp, dword [esp + 0x1c]
mov byte [ecx], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x10
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 + 0x2c]
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 + 0x12]
sub eax, edx
sar eax, 2
add eax, ecx
test eax, 0xff00
je 0x49c6e9
test eax, eax
jns 0x49c6dc
xor eax, eax
jmp 0x49c6e9
cmp eax, 0xff
mov ecx, 0xff
cmovg eax, ecx
mov edx, dword [esp + 0x10]
add edi, eax
cmp edi, 0x48000
mov eax, 0x47fff
cmovge edi, eax
add esi, dword [esp + 0x28]
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 + 0x10], 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 0x49c690
mov esi, dword [esp + 0x50]
inc ebx
add dword [esp + 0x20], esi
mov esi, dword [esp + 0x54]
add dword [esp + 0x24], esi
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add dword [esp + 0x28], 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 + 0x2c], esi
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jne 0x49c672
test dword [0x5c958d], 0x10000
mov esi, dword [esp + 0x1d8]
jne 0x49c8c5
push 0x100
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 0x49c847
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, 5
shr ecx, 5
and eax, 0xf
and ecx, 0xf
shl eax, 4
add eax, ecx
lea ecx, [esp + 0xac]
add ecx, eax
add byte [ecx], 3
cmp byte [ecx], 0xc
jbe 0x49c840
mov byte [ecx], 0xc
mov eax, dword [edx + 4]
test eax, eax
jns 0x49c810
lea edx, [esp + 0xac]
mov ebx, 0x10
mov edi, 4
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 0x49c860
sub ebx, 1
jne 0x49c853
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0
ret
sub esp, 0x19c
test byte [0x5c9591], 4
je 0x49cd6a
add esp, 0x19c
jmp 0x49c440
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], esi
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x1b8]
call fcn.0049df50
mov edx, dword [esp + 0x64]
add esp, 0x10
mov ecx, dword [esp + 0x58]
sub ecx, edx
mov ebx, dword [esp + 0x60]
sub ebx, dword [esp + 0x58]
shl ecx, 0xc
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x5c]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
shl edx, 0x10
sar ebx, 4
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x64]
sub ecx, edx
shl ecx, 0xc
mov eax, dword [esp + 0x1ac]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x70]
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x6c]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
shl edx, 0x10
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
sub ecx, edx
sar ebx, 4
shl ecx, 0xc
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x80]
sub ebx, dword [esp + 0x78]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x7c]
sub ecx, edx
shl ebx, 0xc
shl ecx, 0xc
sub ebx, ecx
mov dword [esp + 0x30], ecx
movzx ecx, al
shl edx, 0x10
movzx eax, ah
shr eax, 1
sar ebx, 4
mov ebp, eax
mov dword [esp + 0x1c], edx
and ebp, 7
shr ecx, 1
mov edx, ebp
mov dword [esp + 0x4c], ebx
mov ebx, ecx
shl edx, 8
and ebx, 7
add edx, ebx
mov dword [esp + 0x50], ecx
shl edx, 5
add edx, dword [0xc27e98]
mov dword [esp + 0x34], eax
inc ecx
shl ebp, 0xd
shl ecx, 5
and ecx, 0xe0
mov dword [esp + 0xc], 0x10
add ebp, ecx
mov dword [esp + 0x10], ecx
add ebp, dword [0xc27e98]
lea ecx, [esp + 0x84]
push edi
mov edi, 0x10
mov al, byte [edx]
add edx, 2
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x49cea5
mov al, byte [ebp]
add edx, 0x1e0
mov byte [ecx], al
add ebp, 0x200
inc ecx
sub dword [esp + 0x10], 1
jne 0x49cea0
mov edi, dword [esp + 0x38]
mov edx, 0x10
mov ebp, dword [0xc27e98]
inc edi
shl edi, 0xd
and edi, 0xe000
shl ebx, 5
add ebx, edi
add ebx, ebp
nop dword [eax + eax]
mov al, byte [ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea ebx, [ebx + 2]
sub edx, 1
jne 0x49cef0
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x88]
mov edx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x14], 0x10
mov al, byte [eax + ebp]
mov byte [ecx], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov esi, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0x10
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 + 0x12]
sub eax, edx
sar eax, 2
add eax, ecx
test eax, 0xff00
je 0x49cf8f
test eax, eax
jns 0x49cf82
xor eax, eax
jmp 0x49cf8f
cmp eax, 0xff
mov ecx, 0xff
cmovg eax, ecx
mov edx, dword [esp + 0x10]
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
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 ecx, dword [esp + 0x2c]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x34]
add edx, eax
sub dword [esp + 0x30], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
jne 0x49cf36
mov ebp, dword [esp + 0x44]
inc ebx
add dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x24], ebp
add ecx, dword [esp + 0x3c]
add edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
add dword [esp + 0x28], ebp
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], eax
jne 0x49cf22
test dword [0x5c958d], 0x10000
mov esi, dword [esp + 0x1b4]
jne 0x49d135
push 0x100
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 0x49d0b7
mov edi, dword [0xc27e84]
nop dword [eax]
movzx ecx, word [edi + eax*8]
lea edx, [edi + eax*8]
movzx eax, word [edx + 2]
shr eax, 5
shr ecx, 5
and eax, 0xf
and ecx, 0xf
shl eax, 4
add eax, ecx
lea ecx, [esp + 0x88]
add ecx, eax
add byte [ecx], 3
cmp byte [ecx], 0xc
jbe 0x49d0b0
mov byte [ecx], 0xc
mov eax, dword [edx + 4]
test eax, eax
jns 0x49d080
lea edx, [esp + 0x88]
mov ebx, 0x10
mov edi, 4
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 0x49d0d0
sub ebx, 1
jne 0x49d0c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret