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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp byte [eax + 2], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
movzx edi, byte [eax + 0xa]
je 0x4eaa51
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x10]
add eax, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
cmp eax, 0x80
jae 0x4eaa21
mov ecx, dword [ebp + 0xc]
mov byte [edi + ecx], al
mov eax, 1
jmp 0x4eaa32
cdq
push edx
mov edx, dword [ebp + 0xc]
push eax
lea esi, [edi + edx]
call fcn.004aee90
add esp, 8
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
movzx eax, al
add edi, eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
lea esi, [edi + eax]
call fcn.004aee90
add esp, 8
add edi, eax
jmp 0x4eaa89
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp eax, 0x80
jae 0x4eaa73
mov edx, dword [ebp + 0xc]
mov byte [edi + edx], al
mov eax, 1
jmp 0x4eaa84
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax]
call fcn.004aee90
add esp, 8
movzx ecx, al
add edi, ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ebx, [edi + edx]
movzx edx, word [ecx + 0xe]
cmp eax, edx
jg 0x4eaad8
add edi, eax
cmp edi, 4
jge 0x4eaaa9
mov edi, 4
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
push esi
push ecx
push ebx
mov dword [eax], edi
call fcn.00480500
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push 0
add ebx, esi
push ebx
call fcn.00480280
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [ecx + 0x10]
sub eax, edx
mov edx, dword [ecx + 0x34]
mov esi, dword [edx + 0x28]
sub esi, 4
xor edx, edx
div esi
movzx eax, word [ecx + 0x10]
movzx esi, word [ecx + 0xe]
add edx, eax
cmp edx, esi
jle 0x4eaafb
mov edx, eax
add edi, edx
lea eax, [edi + 4]
add edi, dword [ebp + 0xc]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor eax, eax
mov dword [ebp - 0x18], edi
mov edi, dword [ecx + 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0xc], eax
lea esp, [esp]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp esi, eax
jle 0x4eab2c
mov esi, eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
jl 0x4eab40
mov ecx, dword [ebp - 8]
push esi
push ecx
push ebx
call fcn.00480500
jmp 0x4eab5c
test eax, eax
jle 0x4eab53
mov edx, dword [ebp - 8]
push eax
push edx
push ebx
mov esi, eax
call fcn.00480500
jmp 0x4eab5c
push esi
push 0
push ebx
call fcn.00480280
mov eax, dword [ebp - 4]
sub eax, esi
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jle 0x4eaccb
add dword [ebp - 8], esi
sub dword [ebp - 0xc], esi
add ebx, esi
sub dword [ebp + 8], esi
jne 0x4eab20
cmp byte [edi + 0x11], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov dword [ebp - 0x1c], ebx
je 0x4eabdd
nop
inc ebx
cmp ebx, 2
jae 0x4eab9a
xor ecx, ecx
jmp 0x4eabc7
mov eax, 0xcccccccd
mul dword [edi + 0x28]
mov esi, edx
shr esi, 2
xor edx, edx
inc esi
lea eax, [ebx - 2]
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x58e8a8]
imul ecx, esi
div dword [edi + 0x24]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x4eabc7
inc ecx
cmp ecx, ebx
je 0x4eab90
mov eax, dword [0x58e8a8]
xor edx, edx
div dword [edi + 0x24]
inc eax
cmp ebx, eax
je 0x4eab90
mov dword [ebp + 0xc], ebx
push 0
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
push edi
call fcn.004e9fa0
mov esi, dword [ebp + 8]
add esp, 0x14
cmp byte [edi + 0x11], 0
mov ebx, eax
mov dword [ebp - 0x14], ebx
je 0x4eac38
test ebx, ebx
jne 0x4eace0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push eax
test eax, eax
setne al
add al, 3
movzx ecx, al
mov eax, dword [ebp + 0xc]
push ecx
push edi
call fcn.004e7e70
mov ebx, dword [ebp - 0x14]
add esp, 0x10
test ebx, ebx
je 0x4eac40
test esi, esi
je 0x4eac38
mov eax, esi
call fcn.004b34b0
test ebx, ebx
jne 0x4eace0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
bswap edx
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4eaca8
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4eaca3
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4eaca8
call fcn.004b0660
mov eax, dword [esi + 0x38]
xor ecx, ecx
bswap ecx
mov dword [eax], ecx
mov ebx, dword [esi + 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x28]
add ebx, 4
sub eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], eax
jmp 0x4eab20
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4eacd7
call fcn.004b34b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4eacec
call fcn.004b34b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret