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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
lea edx, [eax - 1]
mov eax, edx
and esi, 1
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp dword [esp + 0x64], eax
mov dword [esp + 0x28], eax
jge 0x49fb68
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x64]
mov edx, ebp
lea esi, [esi]
mov dword [esp + 0x60], edx
lea esi, [edi + 1]
lea ecx, [esi + esi]
mov dword [esp + 0x24], ecx
lea ebp, [ecx - 1]
shl esi, 5
mov ebx, ebp
shl ebx, 4
add esi, edx
add ebx, edx
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
call dword [esp + 0x7c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
test al, al
cmove ebx, esi
cmove ebp, ecx
mov eax, dword [ebx]
shl edi, 4
add edi, edx
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
mov edi, ebp
cmp ebp, eax
jl 0x49f9e0
mov esi, dword [esp + 0x2c]
mov ebp, edx
test esi, esi
je 0x49fb80
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
lea eax, [edi - 1]
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
cmp edi, dword [esp + 0x64]
jle 0x49fb40
mov ebx, ebp
mov ebp, edx
jmp 0x49faf0
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea edi, [ebp - 1]
mov eax, edi
shr eax, 0x1f
add eax, edi
mov edi, ebp
sar eax, 1
cmp dword [esp + 0x64], ebp
jge 0x49fbc0
mov ebp, eax
mov eax, dword [esp + 0x30]
shl edi, 4
mov esi, ebp
shl esi, 4
add edi, ebx
add esi, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
call dword [esp + 0x7c]
test al, al
jne 0x49fac0
mov ebx, edi
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x64]
shl ebx, 4
add ebx, ebp
test esi, esi
jne 0x49fbc7
mov edi, dword [esp + 0x64]
lea esi, [esi]
mov eax, dword [esp + 0x68]
lea edx, [eax - 2]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp eax, edi
jne 0x49fa7d
lea edi, [edi + edi + 1]
mov eax, edi
shl eax, 4
add eax, ebp
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov ebx, eax
jmp 0x49fa7d
mov ebx, esi
jmp 0x49fb40
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
jmp 0x49fb40