Function at 0x40f1f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4016c0
mov edx, dword [ebp + 0x14]
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov esi, 0x100
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x4c]
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSpaceVar]
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov eax, dword [edx]
push eax
push ecx
call edi
mov edx, dword [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x38]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x24]
push eax
lea edx, [ebp - 0x34]
push ecx
push edx
call edi
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
push ecx
push edx
call edi
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push ecx
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov esi, eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
push ecx
push edx
call ebx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
push edx
push eax
call ebx
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
test esi, esi
je 0x40f3ae
lea ecx, [ebp - 0x5c]
push 1
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
mov edx, dword [ebp - 0x28]
mov si, ax
neg si
mov ecx, dword [ebp - 0x60]
sbb esi, esi
inc esi
neg esi
sub edx, 1
jo 0x40f428
xor eax, eax
cmp ecx, edx
sete al
neg eax
lea ecx, [ebp - 0x2c]
and esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
test si, si
je 0x40f3ae
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 2
jo 0x40f428
mov dword [ebp - 0x28], ecx
mov esi, ecx
jmp 0x40f259
lea edx, [ebp - 0x20]
push edx
call fcn.0040f080
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push 0x40f412
jmp 0x40f401
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x24]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop