Function at 0x41a840
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
sub esp, 0xc
mov eax, dword [0x439124]
push ebx
push ebp
push esi
mov ecx, eax
xor esi, esi
and ecx, 0x8000003f
push edi
mov dword [esp + 0x10], esi
jns 0x41a5e1
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edi, dword [esp + 0x20]
mov ebx, 0x40
mov dword [esp + 0x14], ecx
sub ebx, ecx
mov ecx, dword [edi]
jo 0x41a83a
add ecx, eax
jo 0x41a83a
mov dword [0x439124], ecx
mov eax, dword [edi]
cmp eax, ebx
jl 0x41a797
mov ebp, dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov ecx, ebx
sub ecx, 1
jo 0x41a83a
call ebp
test ax, ax
mov dword [esp + 0x18], eax
jl 0x41a6a7
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
je 0x41a655
cmp word [eax], 1
jne 0x41a655
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
movsx edi, si
sub edi, edx
cmp edi, ecx
jb 0x41a651
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebp, edi
jmp 0x41a65d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebp, eax
mov ecx, dword [esp + 0x14]
movsx edi, si
add edi, ecx
jo 0x41a83a
cmp edi, 0x40
jb 0x41a677
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [esp + 0x24]
add si, 1
jo 0x41a83a
mov ecx, dword [eax]
cmp si, word [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov ecx, dword [0x439138]
mov al, byte [edx + ebp]
mov byte [ecx + edi], al
jle 0x41a62c
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x43912c
push edx
call 0x41a840
mov ecx, dword [edi]
mov eax, ecx
and eax, 0x8000003f
jns 0x41a6c9
dec eax
or eax, 0xffffffc0
inc eax
movsx edx, si
sub ecx, edx
jo 0x41a83a
sub ecx, eax
jo 0x41a83a
call ebp
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x18], esi
call ebp
mov ebp, eax
cmp bp, si
jg 0x41a78d
xor esi, esi
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x41a728
cmp word [eax], 1
jne 0x41a728
mov edx, dword [eax + 0x14]
mov cx, si
add cx, bp
jo 0x41a83a
movsx edi, cx
mov ecx, dword [eax + 0x10]
sub edi, edx
cmp edi, ecx
jb 0x41a730
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x41a730
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edi, eax
movsx ebx, si
cmp ebx, 0x40
jb 0x41a73e
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [esp + 0x24]
add si, 1
jo 0x41a83a
mov eax, dword [edx]
cmp si, 0x3f
mov ecx, dword [eax + 0xc]
mov eax, dword [0x439138]
mov dl, byte [ecx + edi]
mov byte [eax + ebx], dl
jle 0x41a6f5
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x43912c
push ecx
call 0x41a840
add bp, 0x40
jo 0x41a83a
cmp bp, word [esp + 0x18]
jle 0x41a6f3
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], 0
jmp 0x41a799
xor ebp, ebp
mov ecx, dword [edi]
movsx edx, bp
sub ecx, edx
jo 0x41a83a
sub ecx, 1
jo 0x41a83a
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
xor edi, edi
mov dword [esp + 0x20], eax
test ax, ax
jl 0x41a830
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x41a7f1
cmp word [eax], 1
jne 0x41a7f1
mov edx, dword [eax + 0x14]
mov cx, di
add cx, bp
jo 0x41a83a
movsx esi, cx
mov ecx, dword [eax + 0x10]
sub esi, edx
cmp esi, ecx
jb 0x41a7ed
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, esi
jmp 0x41a7f9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
mov ecx, dword [esp + 0x14]
movsx esi, di
add esi, ecx
jo 0x41a83a
cmp esi, 0x40
jb 0x41a80f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [esp + 0x24]
add di, 1
jo 0x41a83a
mov eax, dword [edx]
cmp di, word [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x439138]
mov dl, byte [ecx + ebx]
mov byte [eax + esi], dl
jle 0x41a7c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
push ebp
mov ebp, esp
sub esp, 8
push 0x401a46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4014c8
xor eax, eax
push 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
push 0x414060
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov eax, dword [0x439118]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
mov dword [ebp - 0x40], 0x40
call fcn.0041b550
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
push ecx
push edx
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x48], 0xd76aa478
mov dword [ebp - 0x44], 7
call fcn.0041b770
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
add ecx, 4
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
mov ebx, 0xc
push ecx
push edx
mov dword [ebp - 0x48], 0xe8c7b756
mov dword [ebp - 0x44], ebx
call fcn.0041b770
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
mov edi, 0x11
lea ecx, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0x242070db
mov dword [ebp - 0x44], edi
push ecx
add edx, 8
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.0041b770
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
push ecx
add eax, ebx
push edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
mov esi, 0x16
push eax
push ecx
mov dword [ebp - 0x48], 0xc1bdceee
mov dword [ebp - 0x44], esi
call fcn.0041b770
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
add ecx, 0x10
push eax
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x48], 0xf57c0faf
mov dword [ebp - 0x44], 7
call fcn.0041b770
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x44]
push eax
add edx, 0x14
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x48], 0x4787c62a
mov dword [ebp - 0x44], ebx
call fcn.0041b770
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
push ecx
add eax, 0x18
push edx
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x20]
push edx
mov dword [ebp - 0x48], 0xa8304613
mov dword [ebp - 0x44], edi
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041b770
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
push edx
add ecx, 0x1c
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0x48], 0xfd469501
mov dword [ebp - 0x44], esi
call fcn.0041b770
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x44]
push eax
add edx, 0x20
push ecx
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x48], 0x698098d8
mov dword [ebp - 0x44], 7
call fcn.0041b770