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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x405216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4041c8
mov eax, dword [0x538c1c]
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov word [0x53aa38], 0xffff
call dword [ecx + 0x50]
cmp eax, edi
fnclex
jge 0x4eadc2
mov edx, dword [0x538c1c]
push 0x50
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538c1c]
lea edx, [ebp - 0x38]
push edx
mov edx, dword [0x53aa08]
mov ecx, dword [eax]
push 0x3f800000
push 0x218
push 0xb6
push 0xb52
push edi
push 0x20
push edx
push 7
push eax
mov esi, 0x53a9e4
call dword [ecx + 0x78]
cmp eax, edi
fnclex
jge 0x4eae11
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [0x53aa08]
mov eax, dword [0x53aa00]
mov dword [ebp - 0x4c], eax
mov ebx, 1
lea edi, [edx + 0xb6]
mov eax, dword [ebp - 0x4c]
cmp ebx, eax
mov eax, dword [0x538c1c]
jg 0x4eae82
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push edx
push 0x3f800000
push 0x218
push 0x27
push 0xb52
push 0xf5
push 0x20
push edi
push 7
push eax
call dword [ecx + 0x78]
test eax, eax
fnclex
jge 0x4eae76
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, 1
add edi, 0x27
add ebx, eax
jmp 0x4eae2a
lea ecx, [ebp - 0x38]
mov edx, dword [eax]
push ecx
push 0x3f800000
push 0x218
push 0x17
push 0xb52
push 0xb6
push 0x20
push edi
push 7
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4eaec2
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538c1c]
lea edx, [ebp - 0x38]
push edx
mov edx, dword [esi + 0x20]
mov ecx, dword [eax]
push 0x3f800000
push edx
push 0x27
push 0xb66
push 0xce
add edi, 0xffffffed
push 0x34
push edi
push 7
push eax
call dword [ecx + 0x78]
test eax, eax
fnclex
jge 0x4eaf09
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
add edi, 0xa3
mov dword [ebp - 0x54], edx
mov ebx, 1
cmp ebx, dword [ebp - 0x54]
jg 0x4eaf73
mov eax, dword [0x538c1c]
lea edx, [ebp - 0x38]
push edx
push 0x3f800000
mov ecx, dword [eax]
push 0x1fa
push 0x27
push 0xb64
push 0xce
push 0x32
push edi
push 7
push eax
call dword [ecx + 0x78]
test eax, eax
fnclex
jge 0x4eaf67
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, 1
add edi, 0x27
add ebx, eax
jmp 0x4eaf1d
movsx edx, word [esi + 0x2c]
mov edi, dword [esi + 0x24]
mov ebx, 0x2e
add edi, 0x9f
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x5c]
cmp eax, ecx
jg 0x4eb052
mov edx, dword [0x538c1c]
mov ecx, dword [esi + 0x28]
push 0x2e
push 0x3f800000
mov eax, dword [edx]
push ebx
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
push edi
lea eax, [eax + eax*4]
movsx eax, word [ecx + eax*4 + 2]
mov ecx, dword [ebp - 0x70]
push eax
push edx
call dword [ecx + 0x9c]
test eax, eax
fnclex
jge 0x4eaff3
mov edx, dword [0x538c1c]
push 0x9c
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538ae4]
lea ecx, [edi + 4]
cmp eax, ecx
jle 0x4eb024
lea edx, [edi + 0x2a]
cmp eax, edx
jge 0x4eb024
mov ebx, dword [ebp - 0x24]
mov eax, dword [0x538ae8]
lea ecx, [ebx + 4]
cmp eax, ecx
jle 0x4eb027
lea edx, [ebx + 0x2a]
cmp eax, edx
jge 0x4eb027
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x4eb027
mov ebx, dword [ebp - 0x24]
add ebx, 0x27
cmp ebx, 0x229
mov dword [ebp - 0x24], ebx
jne 0x4eb040
mov ebx, 0x2e
add edi, 0x27
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x18]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4eaf92
mov edx, 0x427890
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ecx, dword [esi + 0x24]
push 0
push 0
push 9
push 0
add ecx, 0x3e
push 0x211
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x2c]
mov di, ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
test di, di
je 0x4eb097
mov word [0x53aa38], 0xa
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x24]
test eax, eax
mov eax, dword [0x538c1c]
push 0x2e
push 0x3f800000
push 0xdd
mov ecx, dword [eax]
jne 0x4eb143
dec edx
push edx
mov edx, dword [esi + 0x3c]
push edx
push eax
call dword [ecx + 0x9c]
test eax, eax
fnclex
jge 0x4eb0e7
mov ecx, dword [0x538c1c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x9c
push 0x420690
push ecx
push eax
call edi
jmp 0x4eb0ed
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [esi + 0x24]
mov ecx, dword [0x538ae4]
lea edx, [eax + 3]
cmp ecx, edx
jle 0x4eb120
lea edx, [eax + 0x29]
cmp ecx, edx
jge 0x4eb120
mov ecx, dword [0x538ae8]
cmp ecx, 0xe1
jle 0x4eb120
cmp ecx, 0x107
jge 0x4eb120
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x1c], ecx
push 0xd9
push 0x389
add eax, 0x2c
push 0xe4
lea edx, [esi + 0x44]
push eax
push edx
push 1
call fcn.0043a1d0
jmp 0x4eb1e6
dec edx
push edx
push 0x226e
push eax
call dword [ecx + 0x9c]
test eax, eax
fnclex
jge 0x4eb16f
mov ecx, dword [0x538c1c]
push 0x9c
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
call fcn.004300e0
mov edx, eax
lea ecx, [ebp - 0x34]
call edi
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], 0x3f800000
mov dword [ebp - 0x34], 0
call edi
mov ecx, dword [esi + 0x24]
lea eax, [ebp - 0x3c]
push eax
push 0x389
add ecx, 0x2c
push 0xe4
lea edx, [ebp - 0x30]
push ecx
push edx
push 1
call fcn.00439780
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add esp, 0x10
mov eax, dword [esi + 0x24]
push 0xfb
add eax, 0x9c
lea ecx, [esi + 0x4c]
push eax
push ecx
push 6
call fcn.004372e0
lea ecx, [ebp - 0x38]
mov ebx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x10]
push 0x3f800000
push ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [0x538c1c]
push ecx
mov ecx, dword [esi + 0x18]
push 0
push 0
mov edx, dword [eax]
push ecx
mov ecx, dword [esi + 0x14]
add ecx, ebx
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4eb247
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call edi
cmp word [esi + 0x50], 0
jne 0x4eb29b
mov eax, dword [0x538c1c]
lea edx, [ebp - 0x38]
push edx
mov edx, dword [esi + 0x24]
mov ecx, dword [eax]
push 0x3f800000
push 0x2c
push 0x4f
push 0xfa
push 0x678
add edx, 0x2a
push 0x122
push edx
push 5
push eax
call dword [ecx + 0x78]
test eax, eax
fnclex
jge 0x4eb32a
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
jmp 0x4eb327
mov eax, dword [esi + 0x24]
mov edx, dword [0x538ae4]
mov ecx, 0x126
lea ebx, [eax + 0x29]
cmp edx, ebx
jle 0x4eb2e7
add eax, 0x7a
cmp edx, eax
jge 0x4eb2e7
mov eax, dword [0x538ae8]
cmp eax, 0x121
jle 0x4eb2e7
cmp eax, 0x14f
jge 0x4eb2e7
cmp word [0x538a5c], 0
mov ecx, 0x152
mov word [0x53aa38], 7
je 0x4eb2e7
mov ecx, 0x17e
lea ebx, [ebp - 0x38]
mov eax, dword [0x538c1c]
push ebx
push 0x3f800000
mov edx, dword [eax]
push 0x2c
push 0x4f
push ecx
mov ecx, dword [esi + 0x24]
push 0x678
add ecx, 0x2a
push 0x122
push ecx
push 5
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4eb32a
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call edi
mov edi, dword [esi + 0x24]
mov eax, 1
mov ebx, 0x166
mov dword [ebp - 0x18], eax
mov ecx, 0x10
cmp eax, ecx
jg 0x4eb43d
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*4]
cmp word [ecx + eax*4], 0
lea eax, [ecx + eax*4]
jne 0x4eb3a8
lea ecx, [ebp - 0x38]
mov eax, dword [0x538c1c]
push ecx
push 0x3f800000
mov edx, dword [eax]
push 0x13
push 0x11
push 0xb51
lea ecx, [ebx + 0xf]
push 0xcf
push ecx
lea ecx, [edi + 0xe]
push ecx
push 7
push eax
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4eb40f
mov edx, dword [0x538c1c]
push 0x78
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
jmp 0x4eb40f
movsx eax, word [eax + 2]
mov ecx, dword [0x538c1c]
push 0x2e
push 0x3f800000
push ebx
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x9c]
test eax, eax
fnclex
jge 0x4eb3e3
mov ecx, dword [0x538c1c]
push 0x9c
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x538ae4]
lea edx, [edi + 3]
cmp eax, edx
jle 0x4eb40f
lea ecx, [edi + 0x29]
cmp eax, ecx
jge 0x4eb40f
mov eax, dword [0x538ae8]
lea edx, [ebx + 3]
cmp eax, edx
jle 0x4eb40f
lea ecx, [ebx + 0x29]
cmp eax, ecx
jge 0x4eb40f
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add edi, 0x27
and eax, 0x80000003
jns 0x4eb421
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4eb429
mov edi, dword [esi + 0x24]
add ebx, 0x27
mov ecx, dword [ebp - 0x18]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, ecx
jmp 0x4eb33a
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x4eb469
mov ecx, dword [esi + 0x28]
push 0
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
push ecx
mov edx, dword [eax + 4]
mov ax, word [eax]
push edx
push 0
push eax
call fcn.004d3af0
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4eb484
mov ecx, dword [esi + 0x40]
mov dx, word [esi + 0x3c]
push 0
push 0
push ecx
push 0
push edx
call fcn.004d3af0
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4eb4b2
mov esi, dword [esi + 0x30]
push 0
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
sub eax, ebx
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 8]
lea eax, [ecx + eax*4]
push edx
mov ecx, dword [eax + 4]
mov dx, word [eax]
push ecx
push 0
push edx
call fcn.004d3af0
wait
push 0x4eb4d3
jmp 0x4eb4d2
ret