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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push edi
xor edi, edi
mov cl, byte [eax + 4]
mov dword [esp + 0x10], edi
test cl, cl
mov byte [esp + 0x14], cl
je 0x4ea9ee
mov eax, dword [eax]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 0xc]
mov esi, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], esi
mov cl, byte [ebx + edx*2]
test ecx, ecx
je 0x4ea87b
mov ebp, dword [0x5390a4]
mov edx, dword [ebp + 0x14]
mov ebp, dword [ebp + 0xc]
mov eax, edx
shl eax, 4
add eax, edx
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*2]
shl eax, 1
sub ebp, eax
lea eax, [esi + esi]
and edx, 0xff
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [ecx + ebp + 0x600]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x14], ecx
je 0x4ea87b
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 2
cmp eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
jge 0x4ea87b
mov eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, ecx
sub eax, ecx
xor ecx, ecx
mov cl, byte [eax + ebx]
test ecx, ecx
jne 0x4ea839
cmp dword [esp + 0x14], 0x135
jle 0x4ea892
mov eax, dword [esp + 0x34]
add eax, 0x11
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
cmp esi, eax
jg 0x4ea9d2
mov edx, dword [esp + 0x34]
sub eax, esi
dec edx
inc eax
mov dword [esp + 0x14], edx
lea ebp, [esi + esi]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
mov eax, ebp
add ecx, ecx
xor edx, edx
sub eax, ecx
mov dl, byte [eax + ebx]
mov esi, edx
cmp esi, 0x5c
jne 0x4ea8e7
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, 0x11
add edx, eax
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
xor edi, edi
jmp 0x4ea9c0
mov eax, ebp
sub eax, ecx
mov ecx, dword [0x538c1c]
movzx ax, byte [eax + ebx + 1]
add eax, 0x3f9
lea ebx, [esp + 0x1c]
movsx eax, ax
push ebx
push 0x3f800000
push 0xf
mov ebx, dword [esp + 0x3c]
push 7
push eax
lea eax, [esi*8]
mov edx, dword [ecx]
sub eax, esi
push eax
mov eax, dword [esp + 0x4c]
push eax
lea eax, [edi + ebx]
push eax
push 5
push ecx
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4ea948
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
push 0x3f800000
lea ecx, [esi + esi*4 + 0x14f]
push 0x11
push 0xa
mov edx, dword [eax]
shl ecx, 1
push 0x407
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [edi + ebx - 1]
push ecx
push 5
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4ea997
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [0x5390a4]
mov ebx, dword [esp + 0x24]
mov ecx, dword [edx + 0x14]
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 0xc]
xor edx, edx
lea eax, [eax + eax*2]
shl eax, 1
sub ecx, eax
mov dl, byte [ecx + esi + 0x600]
add edi, edx
mov eax, dword [esp + 0x10]
add ebp, 2
dec eax
mov dword [esp + 0x10], eax
jne 0x4ea8b1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea esi, [eax + 1]
cmp esi, ecx
jle 0x4ea7f5
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x18
ret 0xc