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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov ecx, edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x28], esi
cmp eax, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
jg 0x49dc50
cmp ecx, eax
mov edx, ebp
jl 0x49dc50
sub edx, ebx
mov eax, edx
sar eax, 3
imul eax, eax, 0xcccccccd
test eax, eax
jle 0x49dc45
xor eax, eax
mov ecx, dword [ebx + eax]
mov dword [edi + eax], ecx
mov ecx, dword [ebx + eax + 4]
mov dword [edi + eax + 4], ecx
mov ecx, dword [ebx + eax + 8]
mov dword [edi + eax + 8], ecx
mov ecx, dword [ebx + eax + 0xc]
mov dword [edi + eax + 0xc], ecx
mov ecx, dword [ebx + eax + 0x10]
mov dword [edi + eax + 0x10], ecx
mov ecx, dword [ebx + eax + 0x14]
mov dword [edi + eax + 0x14], ecx
mov ecx, dword [ebx + eax + 0x18]
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [ebx + eax + 0x1c]
mov dword [edi + eax + 0x1c], ecx
mov ecx, dword [ebx + eax + 0x20]
mov dword [edi + eax + 0x20], ecx
mov ecx, dword [ebx + eax + 0x24]
mov dword [edi + eax + 0x24], ecx
add eax, 0x28
cmp edx, eax
jne 0x49dac2
cmp dword [esp + 0x24], ebp
lea esi, [edi + edx]
je 0x49dbd8
cmp edi, esi
je 0x49dbd8
mov eax, edi
mov edi, ebp
mov ebp, eax
jmp 0x49db7f
mov eax, dword [edi]
add ebx, 0x28
add edi, 0x28
mov dword [ebx - 0x28], eax
mov eax, dword [edi - 0x24]
mov dword [ebx - 0x24], eax
mov eax, dword [edi - 0x20]
mov dword [ebx - 0x20], eax
mov eax, dword [edi - 0x1c]
mov dword [ebx - 0x1c], eax
mov eax, dword [edi - 0x18]
mov dword [ebx - 0x18], eax
mov eax, dword [edi - 0x14]
mov dword [ebx - 0x14], eax
mov eax, dword [edi - 0x10]
mov dword [ebx - 0x10], eax
mov eax, dword [edi - 0xc]
mov dword [ebx - 0xc], eax
mov eax, dword [edi - 8]
mov dword [ebx - 8], eax
mov eax, dword [edi - 4]
mov dword [ebx - 4], eax
cmp ebp, esi
je 0x49dbd6
cmp edi, dword [esp + 0x24]
je 0x49dbd6
mov dword [esp + 4], ebp
mov dword [esp], edi
mov eax, dword [esp + 0x20]
call eax
test al, al
jne 0x49db34
mov eax, dword [ebp]
add ebp, 0x28
add ebx, 0x28
mov dword [ebx - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebx - 4], eax
cmp ebp, esi
jne 0x49db79
mov edi, ebp
cmp esi, edi
je 0x49dc45
sub esi, edi
mov eax, esi
sar eax, 3
imul eax, eax, 0xcccccccd
test eax, eax
jle 0x49dc45
xor eax, eax
nop
mov edx, dword [edi + eax]
mov dword [ebx + eax], edx
mov edx, dword [edi + eax + 4]
mov dword [ebx + eax + 4], edx
mov edx, dword [edi + eax + 8]
mov dword [ebx + eax + 8], edx
mov edx, dword [edi + eax + 0xc]
mov dword [ebx + eax + 0xc], edx
mov edx, dword [edi + eax + 0x10]
mov dword [ebx + eax + 0x10], edx
mov edx, dword [edi + eax + 0x14]
mov dword [ebx + eax + 0x14], edx
mov edx, dword [edi + eax + 0x18]
mov dword [ebx + eax + 0x18], edx
mov edx, dword [edi + eax + 0x1c]
mov dword [ebx + eax + 0x1c], edx
mov edx, dword [edi + eax + 0x20]
mov dword [ebx + eax + 0x20], edx
mov edx, dword [edi + eax + 0x24]
mov dword [ebx + eax + 0x24], edx
add eax, 0x28
cmp esi, eax
jne 0x49dbf0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x2c], esi
mov edx, ebp
jl 0x49dd10
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, eax
sar eax, 3
imul eax, eax, 0xcccccccd
test eax, eax
jle 0x49df2d
xor eax, eax
nop
lea esi, [esi]
mov ecx, dword [ebp + eax]
mov dword [edi + eax], ecx
mov ecx, dword [ebp + eax + 4]
mov dword [edi + eax + 4], ecx
mov ecx, dword [ebp + eax + 8]
mov dword [edi + eax + 8], ecx
mov ecx, dword [ebp + eax + 0xc]
mov dword [edi + eax + 0xc], ecx
mov ecx, dword [ebp + eax + 0x10]
mov dword [edi + eax + 0x10], ecx
mov ecx, dword [ebp + eax + 0x14]
mov dword [edi + eax + 0x14], ecx
mov ecx, dword [ebp + eax + 0x18]
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [ebp + eax + 0x1c]
mov dword [edi + eax + 0x1c], ecx
mov ecx, dword [ebp + eax + 0x20]
mov dword [edi + eax + 0x20], ecx
mov ecx, dword [ebp + eax + 0x24]
mov dword [edi + eax + 0x24], ecx
add eax, 0x28
cmp edx, eax
jne 0x49dc80
add edx, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004a1000
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
cmp eax, esi
jle 0x49de70
mov esi, eax
shr eax, 0x1f
mov ebx, dword [esp + 0x24]
add eax, esi
mov esi, dword [esp + 0x38]
sar eax, 1
mov dword [esp + 0x48], eax
lea eax, [eax + eax*4]
lea ebp, [esi + eax*8]
mov eax, dword [esp + 0x40]
sub ebx, eax
sar ebx, 3
imul ebx, ebx, 0xcccccccd
test ebx, ebx
jle 0x49df34
mov edi, eax
mov dword [esp + 0x34], ebp
jmp 0x49dd7c
sub ebx, esi
lea edi, [ebp + 0x28]
sub ebx, 1
test ebx, ebx
jle 0x49dda1
mov esi, ebx
sar esi, 1
lea eax, [esi + esi*4]
lea ebp, [edi + eax*8]
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
test al, al
jne 0x49dd70
mov ebx, esi
test ebx, ebx
jg 0x49dd7c
mov eax, edi
sub eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
mov esi, edi
sar eax, 3
imul eax, eax, 0xcccccccd
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x48]
sub dword [esp + 0x30], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x3c]
mov ebx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call fcn.0049ee60
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.0049da50
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
cmp ebx, edx
jg 0x49df00
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
jg 0x49df00
mov ebp, edi
mov edx, esi
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
jmp 0x49daab
mov esi, dword [esp + 0x28]
mov eax, esi
shr eax, 0x1f
add eax, esi
mov esi, dword [esp + 0x40]
sar eax, 1
mov dword [esp + 0x3c], eax
lea eax, [eax + eax*4]
lea edi, [esi + eax*8]
mov eax, dword [esp + 0x38]
sub esi, eax
sar esi, 3
imul esi, esi, 0xcccccccd
test esi, esi
jle 0x49df47
mov ebp, eax
mov dword [esp + 0x34], edi
jmp 0x49debc
sub esi, ebx
lea ebp, [edi + 0x28]
sub esi, 1
test esi, esi
jle 0x49dee2
mov ebx, esi
sar ebx, 1
lea eax, [ebx + ebx*4]
lea edi, [ebp + eax*8]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call eax
test al, al
je 0x49deb0
mov esi, ebx
test esi, esi
jg 0x49debc
mov eax, ebp
sub eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov esi, edi
sar eax, 3
imul eax, eax, 0xcccccccd
mov dword [esp + 0x48], eax
jmp 0x49ddba
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x28], edx
mov dword [esp + 0x40], edi
jg 0x49df20
mov ebp, edi
mov edx, esi
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
jmp 0x49dc60
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
jmp 0x49dd20
mov edx, edi
jmp 0x49dcd8
mov edi, dword [esp + 0x40]
mov dword [esp + 0x3c], 0
mov esi, edi
jmp 0x49ddba
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x48], 0
mov esi, edi
jmp 0x49ddba