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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4044f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a78
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor esi, esi
push ecx
mov edi, 1
push edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x108], esi
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaInputFile]
push 0x5c0f94
push 0x5c0fa4
push 0x5c0fd4
push 0x5c0fc8
push 0x5c0fcc
push 0x5c0fd0
push 0x5c0fc4
push edi
push 0x416860
call ebx
mov eax, dword [0x5c0fc4]
add esp, 0x24
cmp eax, esi
je 0x4f2180
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov dword [0x5c0fc4], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, esi
je 0x4f2180
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push 0x5c0e88
push 0x5c0e8c
push 0x5c0e90
push 0x5c0e80
push 0x5c0e78
push 0x5c0e7c
push 0x5c0e74
push 0x5c0e84
push 0x5c0e92
push edi
push 0x416870
call ebx
add esp, 0x2c
cmp word [0x5c0e92], di
je 0x4f2166
mov esi, dword [0x5c0fc4]
add esi, edi
jo 0x4f26c6
cmp word [0x5c0e84], 0xa
mov dword [0x5c0fc4], esi
je 0x4f213d
mov word [0x5c0e90], 0
cmp esi, 0x4e21
jb 0x4f214b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x5c0df8]
push 0x5c0e74
shl esi, 5
add esi, edx
push esi
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
xor esi, esi
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4f20bd
mov eax, dword [0x5c0fc8]
cmp eax, esi
je 0x4f22c6
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov dword [0x5c0fc8], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, esi
je 0x4f22c6
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push edi
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLineInputStr]
mov eax, dword [ebp - 0x44]
push eax
push 0x5c0ea0
push 0x32
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push 0x5c0f0b
push 0x5c0f0c
push 0x5c0f0e
push 0x5c0f08
push 0x5c0f04
push 0x5c0e9c
push 0x5c0e98
push 0x5c0e94
push edi
push 0x416880
call ebx
add esp, 0x28
cmp word [0x5c0f0e], di
je 0x4f22a9
mov eax, dword [0x5c0fc8]
add eax, edi
jo 0x4f26c6
mov esi, eax
cmp esi, 0x4e21
mov dword [0x5c0fc8], eax
jb 0x4f2289
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x5c0e14]
mov ecx, esi
shl ecx, 5
sub ecx, esi
push 0x5c0e94
lea eax, [edx + ecx*4]
push eax
push 0x7c
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
xor esi, esi
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4f21de
mov eax, dword [0x5c0fcc]
cmp eax, esi
je 0x4f23ce
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [0x5c0fcc], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, esi
je 0x4f23ce
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push 0x5c0f20
push 0x5c0f22
push 0x5c0f24
push 0x5c0f1c
push 0x5c0f18
push 0x5c0f14
push 0x5c0f10
push edi
push 0x416890
call ebx
add esp, 0x24
cmp word [0x5c0f24], di
je 0x4f23b1
mov eax, dword [0x5c0fcc]
add eax, edi
jo 0x4f26c6
mov esi, eax
cmp esi, 0x2711
mov dword [0x5c0fcc], eax
jb 0x4f2395
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x5c0e30]
lea ecx, [esi + esi*2]
push 0x5c0f10
lea eax, [edx + ecx*8]
push eax
push 0x18
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
xor esi, esi
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4f2324
mov eax, dword [0x5c0fd0]
cmp eax, esi
je 0x4f24e0
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [0x5c0fd0], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, esi
je 0x4f24e0
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push 0x5c0f40
push 0x5c0f42
push 0x5c0f44
push 0x5c0f3c
push 0x5c0f38
push 0x5c0f34
push 0x5c0f30
push 0x5c0f2c
push 0x5c0f28
push edi
push 0x4168a0
call ebx
add esp, 0x2c
cmp word [0x5c0f44], 2
je 0x4f24c3
mov esi, dword [0x5c0fd0]
add esi, edi
jo 0x4f26c6
cmp esi, 0x7d1
mov dword [0x5c0fd0], esi
jb 0x4f24a8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x5c0e4c]
push 0x5c0f28
shl esi, 5
add esi, edx
push esi
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
xor esi, esi
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4f242c
mov eax, dword [0x5c0fd4]
cmp eax, esi
je 0x4f2637
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, 2
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0x20]
push eax
mov dword [0x5c0fd4], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
cmp eax, esi
je 0x4f2637
push edi
call dword [sym.imp.MSVBVM60.DLL_rtcEndOfFile]
test ax, ax
jne 0x4f2637
push 0x5c0f84
push 0x5c0f88
push 0x5c0f86
push 0x5c0f80
push 0x5c0f7c
push 0x5c0f4c
push 0x5c0f5c
push 0x5c0f54
push 0x5c0f58
push 0x5c0f50
push 0x5c0f78
push 0x5c0f74
push 0x5c0f72
push 0x5c0f70
push 0x5c0f6e
push 0x5c0f6c
push 0x5c0f6a
push 0x5c0f68
push 0x5c0f66
push 0x5c0f64
push 0x5c0f60
push 0x5c0f48
push edi
push 0x4168b0
call ebx
add esp, 0x60
cmp word [0x5c0f86], di
je 0x4f261a
mov eax, dword [0x5c0fd4]
add eax, edi
jo 0x4f26c6
mov esi, eax
cmp esi, 0x3e9
mov dword [0x5c0fd4], eax
jb 0x4f25fa
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x5c0e68]
mov ecx, esi
shl ecx, 4
add ecx, esi
push 0x5c0f48
lea eax, [edx + ecx*4]
push eax
push 0x44
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
xor esi, esi
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4f253e
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
push 0x4f26b3
jmp 0x4f264f
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0xa
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
add esp, 0x2c
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x30]
call esi
lea ecx, [ebp - 0x40]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop