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

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebp
xor ebp, ebp
mov cl, byte [eax + 4]
mov dword [esp + 0x10], ebp
test cl, cl
mov byte [esp + 0x18], cl
je 0x4ea7b9
mov eax, dword [eax]
push ebx
mov ebx, dword [0x5390a4]
push esi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
push edi
mov edi, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x18]
mov esi, edi
sub esi, ecx
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x14], ebp
mov cl, byte [edx + esi*2]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x4ea641
mov esi, dword [ebx + 0x14]
mov eax, esi
shl eax, 4
add eax, esi
lea esi, [eax + eax*2]
mov eax, dword [ebx + 0xc]
shl esi, 1
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [edi + edi]
and esi, 0xff
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x28]
xor eax, eax
mov al, byte [edi + ecx + 0x59a]
mov edi, dword [esp + 0x14]
add edi, eax
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x14], edi
je 0x4ea639
mov edi, dword [esp + 0x10]
inc eax
add edi, 2
cmp eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edi
jge 0x4ea639
mov ecx, dword [esp + 0x18]
mov eax, edi
add ecx, ecx
sub eax, ecx
xor ecx, ecx
mov cl, byte [eax + edx]
test ecx, ecx
jne 0x4ea5f3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], 0x1e9
jle 0x4ea658
mov ecx, dword [esp + 0x3c]
add ecx, 0xf
xor ebp, ebp
mov dword [esp + 0x3c], ecx
cmp edi, eax
jg 0x4ea79e
mov ecx, dword [esp + 0x3c]
sub eax, edi
dec ecx
lea esi, [edi + edi]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, esi
add ecx, ecx
xor ebx, ebx
sub eax, ecx
mov bl, byte [eax + edx]
mov edi, ebx
cmp edi, 0x5c
jne 0x4ea6b3
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [0x5390a4]
mov eax, 0xf
add edi, eax
add ecx, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], ecx
xor ebp, ebp
jmp 0x4ea784
mov eax, esi
lea ebx, [esp + 0x1c]
sub eax, ecx
mov ecx, dword [0x538c1c]
push ebx
mov ebx, dword [esp + 0x3c]
movzx dx, byte [eax + edx + 1]
add edx, 0x104
push 0x3f800000
movsx eax, dx
lea esi, [edi + edi*4]
push 0xf
mov edx, dword [ecx]
push 0xa
shl esi, 1
push eax
mov eax, dword [esp + 0x50]
push esi
push eax
lea eax, [ebx + ebp]
push eax
push 5
push ecx
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4ea711
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [esp + 0x1c]
mov eax, dword [0x538c1c]
push ecx
mov ecx, dword [esp + 0x18]
push 0x3f800000
mov edx, dword [eax]
push 0x11
push 0xa
push 0x1cb
push esi
push ecx
lea ecx, [ebx + ebp - 1]
push ecx
push 5
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4ea757
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ebx, dword [0x5390a4]
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [ebx + 0x14]
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [ebx + 0xc]
lea eax, [eax + eax*2]
shl eax, 1
sub ecx, eax
mov dl, byte [ecx + edi + 0x59a]
add ebp, edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add esi, 2
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
jne 0x4ea677
mov eax, dword [esp + 0x34]
lea edi, [eax + 1]
mov eax, dword [esp + 0x24]
and eax, 0xff
mov dword [esp + 0x20], edi
cmp edi, eax
jle 0x4ea5af
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x20
ret 0xc