Function at 0x404740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4011a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401170
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x58]
mov edx, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x3e
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x33
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x284], eax
mov ecx, 0xc
mov dword [ebp - 0x280], eax
lea edi, [ebp - 0x2b4]
mov dword [ebp - 0x27c], eax
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [ebp - 0x388]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [ebp - 0x3b0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2ec], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x340], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x40487f
cmp word [ecx], 1
jne 0x40487f
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x40487b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
jmp 0x40488b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push pe_nt_image_headers32
add ecx, eax
lea edx, [ebp - 0x58]
push ecx
push edx
call fcn.004030d8
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call edi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea eax, [ebp - 0x2b8]
push eax
call esi
cmp word [ebp - 0x58], 0x5a4d
je 0x404915
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov edi, 8
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x314], 0x403734
mov dword [ebp - 0x31c], edi
call esi
mov dword [ebp - 0x304], 0x403700
jmp 0x4049f4
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2b8]
mov ecx, dword [eax]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x404961
cmp word [ecx], 1
jne 0x404961
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0x344], eax
jb 0x40496d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x344]
jmp 0x40496d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push 0xf8
add ecx, eax
lea edx, [ebp - 0x154]
push ecx
push edx
call fcn.004030d8
call edi
lea eax, [ebp - 0x2b8]
push eax
call esi
cmp dword [ebp - 0x154], 0x4550
je 0x404a5d
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov edi, 8
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x314], 0x403734
mov dword [ebp - 0x31c], edi
call esi
mov dword [ebp - 0x304], 0x403758
lea edx, [ebp - 0x30c]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x30c], edi
call esi
lea ecx, [ebp - 0x2fc]
lea edx, [ebp - 0x2ec]
push ecx
lea eax, [ebp - 0x2dc]
push edx
push eax
lea ecx, [ebp - 0x2cc]
push 0x10
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea edx, [ebp - 0x2fc]
lea eax, [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x2dc]
push eax
lea edx, [ebp - 0x2cc]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
push 0x404fec
jmp 0x404fbb
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x274]
push eax
lea edx, [ebp - 0x388]
push ecx
push edx
push 0x40312c
mov dword [ebp - 0x274], 0x44
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
push eax
mov eax, dword [ebp - 0x158]
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2bc]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push ebx
call fcn.004034e8
mov dword [ebp - 0x340], eax
call edi
lea edx, [ebp - 0x388]
lea eax, [ebp - 0x274]
push edx
push eax
push 0x40312c
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
mov ecx, dword [ebp - 0x2bc]
lea edx, [ebp - 0x158]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov edx, dword [ebp - 0x340]
xor eax, eax
cmp edx, ebx
lea ecx, [ebp - 0x2bc]
sete al
neg eax
mov word [ebp - 0x344], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x388]
push ecx
push 0x40312c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestructAnsi]
cmp word [ebp - 0x344], bx
je 0x404bc9
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2dc], ecx
lea edx, [ebp - 0x30c]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x304], 0x40378c
mov dword [ebp - 0x30c], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x2fc]
lea eax, [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x2dc]
push eax
push ecx
lea edx, [ebp - 0x2cc]
push 0x10
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea eax, [ebp - 0x2fc]
lea ecx, [ebp - 0x2ec]
push eax
lea edx, [ebp - 0x2dc]
push ecx
lea eax, [ebp - 0x2cc]
push edx
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
push 0x404fec
jmp 0x404fbb
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x22c]
push ecx
push edx
mov dword [ebp - 0x22c], 0x10002
call fcn.004033c4
mov dword [ebp - 0x340], eax
call edi
cmp dword [ebp - 0x340], ebx
je 0x404c8e
mov edx, dword [ebp - 0x188]
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x160]
add edx, 8
push 4
push ecx
jo 0x405005
push edx
push eax
mov dword [ebp - 0x340], ebx
call fcn.004035e0
call edi
mov eax, dword [ebp - 0x160]
cmp eax, ebx
je 0x404c8e
mov ecx, dword [ebp - 0x284]
push eax
push ecx
call fcn.00403548
mov dword [ebp - 0x340], eax
call edi
cmp dword [ebp - 0x340], ebx
jne 0x404c8e
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x284]
push pe_nt_image_headers32
push 0x3000
push edx
push eax
push ecx
call fcn.00403628
mov dword [ebp - 0x340], eax
call edi
mov eax, dword [ebp - 0x340]
cmp eax, ebx
mov dword [ebp - 0x230], eax
jne 0x404cb4
mov edx, dword [ebp - 0x280]
push edx
call fcn.004036e0
call edi
mov eax, dword [ebp - 0x284]
push eax
call fcn.004036e0
call edi
push 0x404fec
jmp 0x404fbb
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x404cfd
cmp word [ecx], 1
jne 0x404cfd
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0x344], eax
jb 0x404d09
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x344]
jmp 0x404d09
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x100]
push edx
mov edx, dword [ebp - 0x230]
add ecx, eax
mov eax, dword [ebp - 0x284]
push ecx
push edx
push eax
call fcn.00403594
call edi
lea ecx, [ebp - 0x2b8]
push ecx
call esi
mov eax, dword [ebp - 0x1c]
mov dx, word [ebp - 0x14e]
add eax, 0xf8
jo 0x405005
sub dx, 1
mov dword [ebp - 0x14], eax
jo 0x405005
movsx eax, dx
mov dword [ebp - 0x3b8], eax
cmp ebx, dword [ebp - 0x3b8]
jg 0x404f0b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x404dca
cmp word [ecx], 1
jne 0x404dca
mov esi, ebx
mov eax, dword [ebp - 0x14]
imul esi, esi, 0x28
mov edx, dword [ecx + 0x14]
jo 0x405005
add esi, eax
mov eax, dword [ecx + 0x10]
jo 0x405005
sub esi, edx
cmp esi, eax
jb 0x404dc0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
jmp 0x404dd6
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push 0x28
add ecx, eax
lea edx, [ebp - 0x2b4]
push ecx
lea eax, [ebp - 0x3b0]
push edx
push eax
push 0x40303c
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
push eax
call fcn.004030d8
call edi
lea ecx, [ebp - 0x3b0]
lea edx, [ebp - 0x2b4]
push ecx
push edx
push 0x40303c
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
lea eax, [ebp - 0x2b8]
push eax
call esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x404e6c
cmp word [ecx], 1
jne 0x404e6c
mov esi, dword [ebp - 0x298]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x404e62
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
jmp 0x404e78
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x29c]
add ecx, eax
mov eax, dword [ebp - 0x284]
push edx
mov edx, dword [ebp - 0x2a0]
push ecx
mov ecx, dword [ebp - 0x230]
add edx, ecx
jo 0x405005
push edx
push eax
call fcn.00403594
call edi
lea ecx, [ebp - 0x2b8]
push ecx
call esi
mov edx, dword [ebp - 0x288]
push edx
call 0x405010
mov edx, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x284]
push eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x2a0]
push edx
add eax, dword [ebp - 0x230]
jo 0x405005
push eax
push ecx
call fcn.0040369c
call edi
mov eax, 1
add eax, ebx
jo 0x405005
mov ebx, eax
jmp 0x404d63
mov ecx, dword [ebp - 0x188]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x230]
add ecx, 8
push 4
push eax
jo 0x405005
push ecx
push edx
call fcn.00403594
call edi
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x280]
add eax, ecx
lea ecx, [ebp - 0x22c]
push ecx
push edx
jo 0x405005
mov dword [ebp - 0x17c], eax
call fcn.00403410
call edi
mov eax, dword [ebp - 0x280]
push eax
call fcn.004034a0
call edi
push 0x404fec
jmp 0x404fbb
lea eax, [ebp - 0x388]
push eax
push 0x40312c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestructAnsi]
lea ecx, [ebp - 0x158]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x274]
push ecx
push 0x40312c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
push 0x4011a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401180
xor edi, edi
lea eax, [ebp - 0x38]
push edi
push 7
push 1
push edi
push eax
push 0x10
push 0x880
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb8], edi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x38]
mov ebx, 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x48], ebx
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea edx, [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x58], ebx
lea edx, [ebp - 0x58]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xc0], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc0]
sub ecx, eax
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 2
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x68]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, ebx
mov dword [ebp - 0x70], 0x20
mov dword [ebp - 0x78], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x78]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 4
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x88]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov dword [ebp - 0x90], pe_nt_image_headers32
mov dword [ebp - 0x98], ebx
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x38]
mov ecx, 5
sub ecx, dword [eax + 0x14]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 6
mov dword [ebp - 0xa0], 4
mov dword [ebp - 0xa8], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0xa8]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 7
mov dword [ebp - 0xb0], pe_nt_image_headers32
mov dword [ebp - 0xb8], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0xb8]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcArray]
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x20]
call esi
mov ecx, dword [ebp + 8]
push 0x1d
push ecx
call fcn.00405260
mov ecx, dword [ebp - 0x44]
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x40], eax
push 1
mov dword [ebp - 0x48], ebx
mov dword [edx], ebx
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x20]
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoad]
add esp, 0x1c
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x405246
jmp 0x40523c
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret