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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x80
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401438
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcIsArray]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
call fcn.0041c370
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x78]
push ecx
call fcn.0041c370
mov edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x60]
add eax, 0x18
push eax
call fcn.0041c370
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
push ecx
call fcn.0041c370
mov edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x60]
add eax, 0x24
push eax
call fcn.0041c370
mov ecx, dword [ebp + 8]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x60]
add edx, 0x1c
push edx
call fcn.0041c370
mov ecx, dword [ebp + 8]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x24], 0
jmp 0x41c096
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x8c]
jg 0x41c184
mov dword [ebp - 4], 0xb
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaCyI4]
mov esi, eax
mov edi, edx
push 0
push 0x9c40
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCyI4]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCyMul]
add esi, eax
adc edi, edx
push edi
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaI4Cy]
push eax
call fcn.0041c370
mov dword [ebp - 0x84], eax
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x40]
mov dword [ecx], edx
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x38]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x84]
push ecx
call fcn.0041bc90
neg eax
sbb eax, eax
neg eax
neg eax
movsx edx, ax
test edx, edx
je 0x41c178
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCyI4]
mov esi, eax
mov edi, edx
push 0
push 0x9c40
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx*2]
push eax
call fcn.0041b950
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCyMulI2]
add esi, eax
adc edi, edx
push edi
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaI4Cy]
push eax
call fcn.0041c370
add eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x41c184
mov dword [ebp - 4], 0xf
jmp 0x41c08a
push 0x41c1a8
jmp 0x41c195
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret