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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], 0
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 0x18]
lea eax, [esi + 0xa]
lea edi, [ebx + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x1c]
cmp edi, eax
ja 0x4a1ba0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x4a1bfd
lea eax, [ebx + ebx*4]
lea eax, [ebx + eax*2 + 0xa]
add eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
jmp 0x4a195a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a1ad0
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x2c], edi
je 0x4a1aad
mov esi, dword [esp + 0x2c]
movzx eax, byte [esi]
movzx ecx, byte [esi + 3]
add esi, 0xb
mov byte [esp + 0x31], al
movzx eax, byte [esi - 0xa]
shl ecx, 0x18
mov byte [esp + 0x32], al
movzx eax, byte [esi - 9]
mov byte [esp + 0x33], al
movzx eax, byte [esi - 7]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
or ecx, eax
movzx eax, byte [esi - 6]
mov dword [esp + 0x2c], esi
movzx edx, byte [esi - 4]
shl eax, 8
shl edx, 0x18
mov ebx, edx
movzx edx, byte [esi - 3]
shl edx, 0x10
or edx, ebx
movzx ebx, byte [esi - 1]
or edx, ebx
movzx ebx, byte [esi - 2]
shl ebx, 8
or edx, ebx
or ecx, eax
mov dword [esp + 0x28], edx
je 0x4a1940
mov eax, dword [esp + 0x70]
xor esi, esi
add ecx, dword [eax + 0x10]
movzx edi, byte [ecx]
shl edi, 0x18
mov edx, edi
movzx edi, byte [ecx + 1]
mov eax, edi
mov edi, edx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 8
or edi, eax
jmp 0x4a1a00
add ebp, eax
cmp dword [esp + 0x78], ebp
jbe 0x4a1a78
lea esi, [edx + 1]
cmp esi, edi
jae 0x4a1940
lea edx, [edi + esi]
shr edx, 1
lea ebx, [ecx + edx*4 + 4]
movzx eax, byte [ebx]
shl eax, 0x10
mov ebp, eax
movzx eax, byte [ebx + 1]
shl eax, 8
or eax, ebp
movzx ebp, byte [ebx + 2]
movzx ebx, byte [ebx + 3]
or eax, ebp
cmp dword [esp + 0x78], eax
movzx ebp, bl
jae 0x4a19f5
cmp esi, edx
jae 0x4a1940
lea ebx, [edx + esi]
shr ebx, 1
lea edi, [ecx + ebx*4 + 4]
movzx eax, byte [edi]
shl eax, 0x10
mov ebp, eax
movzx eax, byte [edi + 1]
shl eax, 8
or eax, ebp
movzx ebp, byte [edi + 2]
or eax, ebp
cmp dword [esp + 0x78], eax
movzx ebp, byte [edi + 3]
jb 0x4a1ac3
mov edi, edx
mov edx, ebp
movzx ebp, dl
mov edx, ebx
add ebp, eax
cmp dword [esp + 0x78], ebp
ja 0x4a19fd
movzx eax, byte [esp + 0x32]
movzx edx, byte [esp + 0x31]
mov edi, dword [esp + 0x38]
shl edx, 0x10
shl eax, 8
add edi, 4
or eax, edx
movzx edx, byte [esp + 0x33]
or eax, edx
mov dword [edi - 4], eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x2c], edi
jne 0x4a195a
mov eax, dword [esp + 0x38]
mov dword [eax], 0
mov eax, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, ebx
jmp 0x4a1a35
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
xor esi, esi
mov ebp, dword [esp + 0x78]
add eax, dword [edi + 0x10]
mov ecx, eax
mov dword [esp + 0x28], eax
movzx eax, byte [eax]
shl eax, 0x18
mov edi, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or eax, edi
movzx edi, byte [ecx + 3]
or eax, edi
movzx edi, byte [ecx + 2]
shl edi, 8
or eax, edi
mov edi, eax
lea esi, [esi]
cmp esi, edi
jae 0x4a194c
lea ecx, [edi + esi]
shr ecx, 1
lea ebx, [ecx + ecx*4 + 4]
add ebx, dword [esp + 0x28]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
shl edx, 0x10
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
or eax, edx
cmp ebp, eax
jae 0x4a1b6f
cmp esi, ecx
mov edi, ecx
jae 0x4a194c
add ecx, esi
shr ecx, 1
lea ebx, [ecx + ecx*4 + 4]
add ebx, dword [esp + 0x28]
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
movzx eax, byte [ebx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 2]
or eax, edx
cmp ebp, eax
jb 0x4a1b3e
cmp ebp, eax
jbe 0x4a1b80
lea esi, [ecx + 1]
jmp 0x4a1b10
movzx eax, byte [ebx + 3]
movzx edx, byte [ebx + 4]
shl eax, 8
or dx, ax
jne 0x4a1a78
jmp 0x4a194c
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ecx + 0x24], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 4
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sym._ft_mem_realloc
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x70]
mov dword [eax + 0x20], edx
xor eax, eax
test ecx, ecx
jne 0x4a1abb
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], edx
mov dword [eax + 0x1c], edi
jmp 0x4a191d
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
jmp 0x4a1ab1