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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
push edi
mov edi, dword [ebx + 0x1c8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
push eax
push ecx
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edi
call fcn.0049d3e0
add esp, 0xc
test eax, eax
je 0x49db13
cmp dword [esp + 0x9c], edi
je 0x49da10
mov ebp, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xa0]
push ecx
push ebp
push edx
push ebx
mov dword [esp + 0xb0], edi
call fcn.0049d5f0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xb0]
add esp, 0x14
cmp eax, edi
mov dword [ebx + 0xc], edx
jne 0x49d9d6
mov edi, dword [esp + 0xa8]
mov eax, dword [ebx + 0x38]
test eax, eax
lea ebp, [edi + 1]
mov dword [ebx + 0x34], ebp
je 0x49da2d
push eax
call fcn.0044e915
add esp, 4
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x49da3d
push eax
call fcn.0044e915
add esp, 4
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x49da4d
push eax
call fcn.0044e915
add esp, 4
mov eax, dword [ebx + 0x34]
lea ecx, [eax*8 + 8]
push ecx
call fcn.0044e414
mov edx, dword [ebx + 0x34]
shl edx, 5
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x48]
push edx
push eax
call fcn.0045a8f7
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x4c]
shl ecx, 4
push ecx
push edx
mov dword [ebx + 0x48], eax
call fcn.0045a8f7
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x34]
shl eax, 2
push eax
call fcn.0044e414
mov ecx, dword [ebx + 0x34]
shl ecx, 3
push ecx
mov dword [ebx + 0x40], eax
call fcn.0044e414
mov edx, dword [ebx + 0x34]
shl edx, 4
push edx
mov dword [ebx + 0x3c], eax
call fcn.0044e414
mov ecx, dword [esp + 0xb0]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [eax + ebp*8], esi
mov dword [eax + ebp*8 + 4], ecx
mov edx, dword [ebx + 0x38]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ecx
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
add esp, 0x20
test ecx, ecx
jg 0x49dafb
jl 0x49daf7
test eax, eax
jae 0x49dafb
xor eax, eax
xor ecx, ecx
mov edx, dword [ebx + 0x44]
shl edi, 4
mov dword [edi + edx + 8], eax
mov dword [edi + edx + 0xc], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
mov ebp, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
cmp ebp, dword [esp + 0x90]
jg 0x49dc58
mov edx, dword [esp + 0x84]
jl 0x49db52
cmp edx, esi
jae 0x49dc58
jmp 0x49db52
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, esi
sub ecx, edx
mov eax, edi
sbb eax, ebp
test eax, eax
jg 0x49db74
jl 0x49db70
cmp ecx, 0x10000
jae 0x49db74
mov esi, edx
jmp 0x49db87
push 0
add esi, edx
push 2
adc edi, ebp
push edi
push esi
call fcn.0044f600
mov esi, eax
mov ebp, edx
cmp esi, dword [ebx + 8]
jne 0x49db91
cmp ebp, dword [ebx + 0xc]
je 0x49dba7
push ebp
push esi
push ebx
call fcn.0049d7e0
cdq
mov ecx, eax
add esp, 0xc
or ecx, edx
jne 0x49de69
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x4c]
push edx
push ebx
call fcn.0049d220
add esp, 0x10
cmp eax, 0xffffff80
mov dword [esp + 0x2c], eax
mov edi, edx
jne 0x49dbcd
cmp edi, 0xffffffff
je 0x49de71
test edi, edi
jl 0x49dc12
jg 0x49dbd7
test eax, eax
jb 0x49dc12
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0049d3c0
add esp, 0xc
test eax, eax
je 0x49dc0e
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
jmp 0x49dc2c
mov eax, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
jl 0x49dc2c
jg 0x49dc24
test eax, eax
jb 0x49dc2c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x88], edx
jl 0x49db44
jg 0x49dc50
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x84], eax
jb 0x49db44
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ebp
je 0x49dca7
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x88]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x98], edi
call fcn.0049d5f0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x98]
add esp, 0x14
cmp eax, edi
mov dword [ebx + 0xc], edx
jne 0x49dc69
mov edx, dword [ebx + 8]
cmp edx, esi
jne 0x49dcb5
mov eax, dword [ebx + 0xc]
cmp eax, ebp
je 0x49dccb
push ebp
push esi
push ebx
call fcn.0049d7e0
cdq
mov ecx, eax
add esp, 0xc
or ecx, edx
jne 0x49de69
push 0
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
call fcn.0049cf70
cdq
mov ecx, eax
add esp, 0x18
or ecx, edx
jne 0x49de69
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x1c8]
lea ecx, [esp + 0x54]
push ecx
push ebx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
call fcn.0049d840
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xb0]
lea ebp, [edx + 1]
mov edx, dword [esp + 0xa4]
push ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
push ebx
call fcn.0049d960
cdq
mov ecx, eax
add esp, 0x3c
or ecx, edx
jne 0x49de69
mov eax, dword [esp + 0x78]
test eax, eax
je 0x49dd9e
push eax
call fcn.0044e915
add esp, 4
mov edx, dword [ebx + 0x38]
mov dword [edx + ebp*8], esi
mov eax, dword [esp + 0x20]
mov dword [edx + ebp*8 + 4], eax
mov ecx, dword [ebx + 0x40]
mov dword [ecx + ebp*4], edi
mov edx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x84]
mov dword [edx + ebp*8], eax
mov ecx, dword [esp + 0x88]
mov dword [edx + ebp*8 + 4], ecx
mov eax, dword [ebx + 0x48]
mov edi, ebp
shl edi, 5
add edi, eax
mov ecx, 8
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
shl ebp, 4
add edx, ebp
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xa8]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x44]
shl eax, 4
mov dword [eax + edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x14]
add ebp, ecx
mov dword [ebp], edx
mov dword [ebp + 4], esi
mov ecx, dword [ebx + 0x44]
mov edi, dword [eax + ecx + 0x18]
lea ecx, [eax + ecx + 0x18]
sub edi, edx
mov dword [ecx], edi
sbb dword [ecx + 4], esi
mov edx, dword [ebx + 0x44]
mov ecx, dword [eax + edx + 0x1c]
test ecx, ecx
lea eax, [eax + edx + 0x18]
jg 0x49de67
jl 0x49de5a
cmp dword [eax], 0
jae 0x49de67
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
add esp, 0x64
ret