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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb8]
sub eax, 1
mov edi, eax
shr edi, 0x1f
add edi, eax
sar edi, 1
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x1c], edi
jge 0x49a90b
mov edi, dword [esp + 0xb4]
mov esi, ebp
jmp 0x49a692
mov edi, ebp
lea eax, [edi + 1]
lea ebp, [eax + eax]
lea eax, [ebp + eax*8]
shl eax, 3
lea ebx, [esi + eax]
lea eax, [esi + eax - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [esp + 0xe4]
test al, al
je 0x49a6c2
sub ebp, 1
lea eax, [ebp + ebp*4]
lea ebx, [esi + eax*8]
lea eax, [edi + edi*4]
mov ecx, dword [ebx]
cmp ebp, dword [esp + 0x1c]
lea eax, [esi + eax*8]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x24], ecx
jl 0x49a690
test byte [esp + 0xb8], 1
mov dword [esp + 0xb0], esi
mov esi, ebp
mov ebp, dword [esp + 0xb0]
jne 0x49a73d
mov eax, dword [esp + 0xb8]
sub eax, 2
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
cmp eax, esi
je 0x49a802
mov eax, dword [esp + 0x38]
cmp esi, dword [esp + 0xb4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], eax
jg 0x49a860
mov eax, dword [esp + 0x68]
mov dword [ebx], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [ebx + 0x24], eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, 1
lea ecx, [esi + esi]
lea eax, [ecx + esi*8]
lea esi, [ebp + eax*8]
lea eax, [esi - 0x28]
mov esi, dword [esi - 0x28]
mov dword [ebx], esi
mov esi, dword [eax + 4]
mov dword [ebx + 4], esi
mov esi, dword [eax + 8]
mov dword [ebx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ebx + 0xc], esi
mov esi, dword [eax + 0x10]
mov dword [ebx + 0x10], esi
mov esi, dword [eax + 0x14]
mov dword [ebx + 0x14], esi
mov esi, dword [eax + 0x18]
mov dword [ebx + 0x18], esi
mov esi, dword [eax + 0x1c]
mov dword [ebx + 0x1c], esi
mov esi, dword [eax + 0x20]
mov dword [ebx + 0x20], esi
mov eax, dword [eax + 0x24]
lea esi, [ecx - 1]
mov dword [ebx + 0x24], eax
lea eax, [esi + esi*4]
lea ebx, [ebp + eax*8]
jmp 0x49a73d
lea eax, [esi - 1]
mov edx, dword [esp + 0xb4]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
mov edi, ecx
sar edi, 1
lea eax, [edi + edi*4]
mov dword [esp + 0x1c], edx
lea ebx, [ebp + eax*8]
lea eax, [esp + 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [esp + 0xe4]
test al, al
mov edx, dword [esp + 0x1c]
lea eax, [esi + esi*4]
jne 0x49a8b0
lea ebx, [ebp + eax*8]
jmp 0x49a7a6
mov ecx, dword [ebx]
lea eax, [ebp + eax*8]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x24], ecx
lea eax, [edi - 1]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
cmp edx, edi
jge 0x49a7a6
mov esi, edi
mov edi, eax
jmp 0x49a875
test byte [esp + 0xb8], 1
jne 0x49a92f
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xb4]
lea eax, [eax + eax*4]
lea ebx, [ebp + eax*8]
jmp 0x49a722
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xb4]
lea eax, [eax + eax*4]
jmp 0x49a89d