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

Disassembly:
sub esp, 0xb4
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
push esi
mov esi, dword [esp + 0xcc]
mov eax, ebx
sub eax, ecx
push edi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xd8]
lea edx, [ebx - 1]
push edx
push eax
sar edi, 1
add edi, ecx
push edi
mov dword [esp + 0x40], ecx
push esi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xdc]
push ecx
push esi
mov eax, ebx
call fcn.004eb310
mov ebp, esi
lea eax, [edi + 1]
add esp, 0x18
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0xd4], edi
jae 0x4eaef0
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea esi, [edi - 1]
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
call ebx
add esp, 8
test al, al
jne 0x4eaef0
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
call ebx
add esp, 8
test al, al
jne 0x4eaef0
mov edi, esi
jmp 0x4eae6a
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0xdc]
jae 0x4eaf49
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov esi, eax
lea eax, [esp + 0x18]
call fcn.004a8ec0
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
call ebx
add esp, 8
test al, al
jne 0x4eaf49
lea eax, [esp + 0x18]
call fcn.004a8ec0
mov esi, eax
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
call ebx
add esp, 8
test al, al
jne 0x4eaf49
inc dword [esp + 0x1c]
jmp 0x4eaef0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov esi, edi
jmp 0x4eaf64
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [esp + 0xdc]
jae 0x4eb040
lea eax, [esp + 0x28]
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
call dword [esp + 0xd4]
add esp, 8
test al, al
jne 0x4eb02b
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
call dword [esp + 0xd4]
add esp, 8
test al, al
jne 0x4eb040
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edx
inc edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x94], ecx
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x90]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4eb02b
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
inc ebx
mov dword [esp + 0x2c], ebx
jmp 0x4eaf64
cmp esi, dword [esp + 0xd4]
jbe 0x4eb141
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov dword [esp + 0x14], eax
mov eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0xa8], eax
lea ebx, [esi - 1]
lea eax, [esp + 0xa8]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xac], ebx
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
call dword [esp + 0xd4]
add esp, 8
test al, al
jne 0x4eb127
mov eax, ebp
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xbc], esi
mov dword [esp + 0x54], ebx
call fcn.004a8ec0
mov ebp, eax
lea eax, [esp + 0x20]
call fcn.004a8ec0
mov ecx, dword [ebp]
mov edx, dword [eax]
push ecx
push edx
call dword [esp + 0xd4]
add esp, 8
test al, al
jne 0x4eb132
mov eax, dword [esp + 0x20]
dec edi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xbc], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x64], edi
call fcn.004a8ec0
mov esi, eax
lea eax, [esp + 0x60]
call fcn.004a8ec0
mov ebp, dword [esp + 0x20]
cmp eax, esi
je 0x4eb127
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
mov esi, ebx
mov ebx, dword [esp + 0x2c]
jmp 0x4eb040
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
cmp esi, dword [esp + 0xd4]
jne 0x4eb1ff
cmp ebx, dword [esp + 0xdc]
je 0x4eb2e4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4eb19e
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edi
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4eb19e
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
inc dword [esp + 0x1c]
mov ecx, ebx
mov edx, edi
mov dword [esp + 0xb0], eax
inc ebx
inc edi
lea eax, [esp + 0xb0]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edx
call fcn.004a8ec0
mov ebx, eax
lea eax, [esp + 0x80]
call fcn.004a8ec0
cmp eax, ebx
je 0x4eaf60
mov edx, dword [ebx]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [ebx], ecx
jmp 0x4eaf60
dec esi
cmp ebx, dword [esp + 0xdc]
jne 0x4eb280
dec edi
mov dword [esp + 0x24], edi
cmp esi, edi
je 0x4eb250
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], esi
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4eb250
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x78]
jmp 0x4eb2be
mov eax, dword [esp + 0x28]
mov ecx, ebx
inc ebx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x9c], ecx
call fcn.004a8ec0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x98]
call fcn.004a8ec0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4eaf64
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
jmp 0x4eaf64
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop ebx
add esp, 0xb4
ret