Function at 0x421930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401fc6
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], 0x401c60
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x64], edi
call esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
call esi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
call esi
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
push eax
push 0x408e48
call esi
test eax, eax
je 0x42173f
mov ecx, dword [ebp - 0x64]
push ecx
push 0x408e50
call esi
test eax, eax
je 0x42173f
mov edx, dword [ebp - 0x64]
push edx
push 0x408e60
call esi
test eax, eax
jne 0x4216d9
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42c178]
push 0x1000
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.USER32.DLL_LoadImageW]
mov dword [ebp - 0x1c], eax
jmp 0x421860
mov edx, dword [ebp - 0x64]
push edx
push 0x408e68
call esi
test eax, eax
jne 0x42170a
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42c178]
push 0x1000
push edi
push edi
push 2
push eax
push ecx
call dword [sym.imp.USER32.DLL_LoadImageW]
mov dword [ebp - 0x1c], eax
jmp 0x421860
mov edx, dword [ebp - 0x64]
push edx
push 0x408e74
call esi
test eax, eax
jne 0x421860
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42c178]
push 0x1000
push edi
push edi
push 1
push eax
push ecx
call dword [sym.imp.USER32.DLL_LoadImageW]
mov dword [ebp - 0x1c], eax
jmp 0x421860
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x54]
push edx
push eax
call 0x421930
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrErrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x408e58
call esi
mov esi, eax
lea ecx, [ebp - 0x40]
neg esi
sbb esi, esi
inc esi
neg esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp si, di
je 0x4217b9
push 0x4071b0
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
lea edx, [ebp - 0x28]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push 0x42190a
jmp 0x4218df
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVar2Vec]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x3c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x421804
cmp word [eax], 1
jne 0x421804
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
neg esi
cmp esi, ecx
jb 0x42180c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x42180c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov esi, eax
mov eax, dword [ebp - 0x18]
push 0x1000
push edi
push edi
push 0x30000
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov ecx, dword [ebp - 0x24]
sub eax, 1
jo 0x421920
push eax
push ecx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov edx, dword [ebp - 0x3c]
add eax, 1
jo 0x421920
push eax
mov eax, dword [edx + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.DLL_CreateIconFromResourceEx]
lea ecx, [ebp - 0x3c]
mov esi, eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], edi
je 0x421897
lea edx, [ebp - 0x1c]
push 0x4071b0
push edx
call fcn.0041d130
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x44]
push eax
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
lea ecx, [ebp - 0x28]
push eax
push ecx
call esi
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
push 0x42190a
jmp 0x4218df
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x64]
call esi
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x24]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401fc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401c70
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
call ebx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcIsNumeric]
test ax, ax
je 0x4219c5
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov ecx, dword [0x42c178]
push eax
mov eax, dword [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4219e8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x42c178]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x421bc8
mov edx, dword [0x42c178]
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c178]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
movsx ecx, word [ebp + 0x14]
add ecx, 0xfffffff0
mov dword [0x42c17c], eax
cmp ecx, 0x20
ja case.0x421a29.20
xor edx, edx
mov dl, byte [ecx + 0x421c54]
jmp dword [edx*4 + 0x421c40]
mov edi, 1
jmp case.0x421a29.20
mov edi, 2
jmp case.0x421a29.20
mov edi, 3
jmp case.0x421a29.20
mov edi, 4
movsx ecx, word [ebp + 0x18]
add ecx, 0xfffffffc
cmp ecx, 0x1c
ja case.0x421a5e.8
xor edx, edx
mov dl, byte [ecx + 0x421c8c]
jmp dword [edx*4 + 0x421c78]
mov dword [ebp - 0x18], 1
jmp case.0x421a5e.8
mov dword [ebp - 0x18], 2
jmp case.0x421a5e.8
mov dword [ebp - 0x18], 3
jmp case.0x421a5e.8
mov dword [ebp - 0x18], 4
cmp word [0x42c170], 0
jne 0x421b01
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x60], eax
movsx esi, di
dec esi
mov dword [ebp - 0x68], 0x8003
cmp esi, 4
jb 0x421aac
call ebx
movsx edi, word [ebp - 0x18]
dec edi
cmp edi, 4
jb 0x421ab8
call ebx
lea ecx, [esi + edi*4]
mov esi, dword [0x42c190]
shl ecx, 4
lea eax, [ebp - 0x68]
add ecx, esi
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstNe]
test ax, ax
je 0x421afa
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x421c0f
jmp 0x421bf2
mov eax, dword [0x42c17c]
jmp 0x421b07
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
test eax, eax
jne 0x421b2b
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x421c0f
jmp 0x421bf2
sub eax, 1
push 0
jo 0x421ca9
push eax
push 1
lea edx, [ebp - 0x2c]
push 0x11
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
lea ecx, [ebp - 0x48]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x421b7f
cmp word [ecx], 1
jne 0x421b7f
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x421b7b
call ebx
mov ecx, dword [ebp - 0x48]
mov eax, esi
jmp 0x421b84
call ebx
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x42c17c]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [ebp - 0x28]
add ecx, eax
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x68], 0x2011
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
push 0x421c0f
jmp 0x421bf2
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x30]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
push ebp
mov ebp, esp
sub esp, 8
push 0x401fc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401c80
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, 0xffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
jg 0x421d06
cmp eax, ebx
jl 0x421d06
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
or ebx, 0xffffffff
jmp 0x421d1a
lea eax, [ebp + 0x10]
push eax
call fcn.0041cf40
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [0x42c190]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov edi, 2
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x128
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0x40
mov dword [ebp - 0x24], 0x568
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x368
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0x80]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0xc0
mov dword [ebp - 0x24], 0x468
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x1e8
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0x10]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0x50
mov dword [ebp - 0x24], 0x6c8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x748
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0x90]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0xd0
mov dword [ebp - 0x24], 0x988
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x2e8
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0x20]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0x60
mov dword [ebp - 0x24], 0x8a8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0xca8
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0xa0]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0xe0
mov dword [ebp - 0x24], 0x10a8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x668
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0x30]
call esi
mov dword [ebp - 0x24], 0xea8
mov dword [ebp - 0x2c], edi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0x70
call esi
mov eax, dword [0x42c190]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0x1ca8
mov dword [ebp - 0x2c], edi
lea ecx, [eax + 0xb0]
call esi
mov ecx, dword [0x42c190]
lea edx, [ebp - 0x2c]
add ecx, 0xf0
mov dword [ebp - 0x24], 0x25a8
mov dword [ebp - 0x2c], edi
call esi
test bx, bx
je 0x421ed8
cmp dword [ebp + 0xc], 3
jne 0x421ed8
mov dx, word [0x42c16e]
mov ax, word [0x42c16c]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
push 3
call fcn.00421f10
mov dword [ebp - 0x14], 1
push 0x421eee
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret