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

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
add ecx, 0xfffffffc
add ecx, dword [esp + 0x74]
cmp dword [esp + 0x74], 4
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], ecx
ja 0x49adba
mov eax, 0xffffffba
add esp, 0x6c
ret
mov eax, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
movzx eax, byte [eax + ebp - 1]
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x60]
push eax
call fcn.00495100
mov eax, dword [esp + 0xa0]
movzx eax, byte [eax + ebp - 1]
push eax
push dword [esp + 0xa0]
lea eax, [esp + 0x4c]
push eax
call fcn.00495100
mov ebx, dword [esp + 0xb4]
movzx eax, byte [ebx + ebp - 1]
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x68]
push eax
call fcn.00495100
movzx eax, byte [ebx + ebp - 1]
add esp, 0x24
mov ecx, dword [esp + 0xa0]
movzx edi, word [ecx + ebp*8 - 4]
lea ecx, [ecx + ebp*8]
mov edx, dword [esp + 0x8c]
movzx ebx, byte [eax + 0x521678]
mov eax, dword [esp + 0x80]
mov esi, ebx
shr esi, 3
mov dword [esp + 0x84], ecx
and edi, dword [ebx*4 + 0x5215c8]
mov dword [eax], edi
lea ebp, [esi + eax]
mov eax, dword [esp + 0xa4]
cmp ebp, dword [esp + 0x78]
cmova ebp, dword [esp + 0x78]
and ebx, 7
movzx eax, byte [edx + eax - 1]
movzx edx, byte [eax + 0x5216e8]
movzx eax, word [ecx - 2]
mov ecx, dword [edx*4 + 0x5215c8]
and ecx, eax
mov dword [esp + 0x80], ecx
mov ecx, ebx
mov eax, dword [esp + 0x80]
shl eax, cl
lea ecx, [esi*8]
shr edi, cl
lea esi, [edx + ebx]
mov edx, dword [esp + 0x78]
or eax, edi
mov edi, dword [esp + 0x94]
mov ecx, esi
shr ecx, 3
mov dword [ebp], eax
add ebp, ecx
cmp ebp, edx
cmova ebp, edx
shl ecx, 3
shr eax, cl
and esi, 7
cmp dword [esp + 0xa8], 0
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x80], eax
movzx ebx, byte [edi + ecx - 1]
mov dword [esp + 0x2c], ebx
je 0x49af73
mov eax, 0x18
cmp ebx, eax
cmovb eax, ebx
mov dword [esp + 0x20], eax
sub ebx, eax
je 0x49af3e
mov ecx, dword [esp + 0x84]
mov eax, dword [ebx*4 + 0x5215c8]
and eax, dword [ecx - 8]
mov ecx, esi
shl eax, cl
add esi, ebx
or eax, dword [esp + 0x80]
mov ecx, esi
shr ecx, 3
mov edi, eax
mov dword [ebp], eax
add ebp, ecx
cmp ebp, edx
cmova ebp, edx
shl ecx, 3
shr edi, cl
and esi, 7
jmp 0x49af45
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [eax - 8]
mov ebx, dword [ebx*4 + 0x5215c8]
shr eax, cl
mov ecx, esi
and ebx, eax
shl ebx, cl
or ebx, edi
add esi, dword [esp + 0x20]
mov edi, dword [esp + 0x94]
jmp 0x49af8e
mov ecx, dword [esp + 0x84]
mov ebx, dword [ebx*4 + 0x5215c8]
and ebx, dword [ecx - 8]
mov ecx, esi
shl ebx, cl
or ebx, eax
add esi, dword [esp + 0x2c]
mov ecx, esi
mov dword [ebp], ebx
shr ecx, 3
add ebp, ecx
cmp ebp, edx
cmova ebp, edx
shl ecx, 3
shr ebx, cl
and esi, 7
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
lea eax, [ecx - 2]
mov dword [esp + 0x20], eax
cmp eax, ecx
jae 0x49b30d
mov edx, dword [esp + 0x8c]
lea ecx, [eax + edi]
sub dword [esp + 0x9c], edi
sub edx, edi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
nop dword [eax]
nop word [eax + eax]
movzx ebp, byte [ecx]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x28], ebp
movzx ebx, byte [eax + ecx]
movzx eax, byte [ebx + 0x521678]
mov dword [esp + 0x30], eax
movzx eax, byte [edx + ecx]
movzx ecx, byte [eax + 0x5216e8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + ebp*8 + 4]
add ecx, edi
shr ecx, 0x10
mov edx, dword [ecx*4 + 0x5215c8]
and edx, edi
lea edi, [ecx + esi]
mov esi, dword [esp + 0x10]
sar esi, cl
mov ecx, dword [esp + 0x40]
add esi, dword [ecx + ebp*8]
mov ecx, dword [esp + 0x3c]
movzx esi, word [ecx + esi*2]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], esi
mov esi, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, edi
add eax, dword [esp + 0x84]
shr eax, 0x10
add edi, eax
mov ebp, dword [eax*4 + 0x5215c8]
and ebp, dword [esp + 0x84]
shl ebp, cl
mov ecx, dword [esp + 0x1c]
shl edx, cl
mov ecx, eax
mov eax, dword [esp + 0x84]
or ebp, edx
mov edx, dword [esp + 0x80]
or ebp, dword [esp + 0x18]
sar eax, cl
mov ecx, dword [esp + 0x5c]
add eax, esi
movzx eax, word [ecx + eax*2]
mov ecx, edi
mov dword [edx], ebp
shr ecx, 3
add edx, ecx
mov dword [esp + 0x84], eax
cmp edx, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
cmova edx, dword [esp + 0x78]
and edi, 7
mov dword [esp + 0x80], edx
shl ecx, 3
mov edx, dword [eax + ebx*8 + 4]
add edx, dword [esp + 0x14]
shr edx, 0x10
shr ebp, cl
mov ecx, edi
mov eax, dword [edx*4 + 0x5215c8]
lea esi, [edi + edx]
and eax, dword [esp + 0x14]
shl eax, cl
mov ecx, edx
or ebp, eax
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
mov edx, esi
sar eax, cl
mov ecx, dword [esp + 0x50]
shr edx, 3
add eax, dword [ecx + ebx*8]
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + eax*2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [eax], ebp
add eax, edx
cmp eax, edi
cmova eax, edi
mov ebx, dword [esp + 0x30]
and esi, 7
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax*8]
mov eax, dword [esp + 0xa0]
add eax, 6
mov dword [esp + 0x1c], ecx
add eax, ecx
mov ecx, dword [ebx*4 + 0x5215c8]
mov dword [esp + 0x34], eax
movzx eax, word [eax - 2]
and ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, esi
mov eax, dword [esp + 0x18]
shl eax, cl
lea ecx, [edx*8]
shr ebp, cl
lea edx, [esi + ebx]
mov esi, dword [esp + 0x24]
or eax, ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x18], eax
lea eax, [esi + ebx]
mov ebx, dword [esp + 0x18]
cmp eax, 0x18
jbe 0x49b1c4
mov ecx, edx
mov dword [ebp], ebx
shr ecx, 3
add ebp, ecx
cmp ebp, edi
cmova ebp, edi
shl ecx, 3
and edx, 7
shr ebx, cl
mov eax, dword [esp + 0x34]
mov ecx, edx
mov esi, dword [esi*4 + 0x5215c8]
movzx eax, word [eax]
and esi, eax
mov eax, dword [esp + 0x24]
shl esi, cl
add eax, edx
or esi, ebx
mov ecx, eax
shr ecx, 3
mov dword [ebp], esi
add ebp, ecx
cmp ebp, edi
cmova ebp, edi
shl ecx, 3
and eax, 7
shr esi, cl
cmp dword [esp + 0xa8], 0
je 0x49b291
mov ebx, dword [esp + 0x28]
mov ecx, 0x18
cmp ebx, ecx
cmovb ecx, ebx
mov dword [esp + 0x80], ecx
sub ebx, ecx
je 0x49b25f
mov ecx, dword [esp + 0xa0]
add ecx, dword [esp + 0x1c]
mov edx, dword [ebx*4 + 0x5215c8]
mov dword [esp + 0x34], ecx
and edx, dword [ecx]
mov ecx, eax
shl edx, cl
add eax, ebx
or esi, edx
mov edx, eax
shr edx, 3
mov dword [ebp], esi
add ebp, edx
cmp ebp, edi
lea ecx, [edx*8]
cmova ebp, edi
mov edx, dword [esp + 0x34]
shr esi, cl
and eax, 7
jmp 0x49b26a
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0xa0]
mov edx, dword [edx]
mov ecx, ebx
mov ebx, dword [esp + 0x80]
shr edx, cl
mov ecx, eax
mov ebx, dword [ebx*4 + 0x5215c8]
and ebx, edx
shl ebx, cl
or ebx, esi
mov esi, dword [esp + 0x80]
add esi, eax
jmp 0x49b2b7
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x1c]
mov ebx, dword [edx*4 + 0x5215c8]
and ebx, dword [edi + ecx]
mov ecx, eax
mov edi, dword [esp + 0x78]
shl ebx, cl
or ebx, esi
lea esi, [eax + edx]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov edx, dword [esp + 0x8c]
shr ecx, 3
mov dword [ebp], ebx
add ebp, ecx
cmp ebp, edi
cmova ebp, edi
mov edi, dword [esp + 0x10]
shl ecx, 3
dec eax
shr ebx, cl
and esi, 7
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0xa4]
jb 0x49b010
mov edx, dword [esp + 0x78]
jmp 0x49b328
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov ecx, esi
add esi, eax
mov edi, dword [eax*4 + 0x5215c8]
and edi, dword [esp + 0x84]
shl edi, cl
mov ecx, esi
shr ecx, 3
or edi, ebx
mov ebx, dword [esp + 0x78]
mov dword [ebp], edi
add ebp, ecx
cmp ebp, edx
cmova ebp, edx
mov edx, dword [esp + 0x44]
shl ecx, 3
and esi, 7
shr edi, cl
mov ecx, esi
add esi, edx
mov eax, dword [edx*4 + 0x5215c8]
and eax, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
shl eax, cl
mov ecx, esi
or edi, eax
shr ecx, 3
mov dword [ebp], edi
add ebp, ecx
mov eax, dword [edx*4 + 0x5215c8]
cmp ebp, ebx
cmova ebp, ebx
and eax, dword [esp + 0x14]
shl ecx, 3
and esi, 7
shr edi, cl
mov ecx, esi
shl eax, cl
or edi, eax
lea eax, [esi + edx]
mov dword [ebp], edi
mov ecx, eax
shr ecx, 3
add ebp, ecx
cmp ebp, ebx
cmova ebp, ebx
and eax, 7
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
shl ecx, 3
shr edi, cl
push eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x6c], edi
call fcn.0049ab30
add esp, 4
mov ecx, 0xffffffba
test eax, eax
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret