Function at 0x41f0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402386
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], 0x401d70
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 0x408fdc
call esi
test eax, eax
je 0x41eebf
mov ecx, dword [ebp - 0x64]
push ecx
push 0x408fe4
call esi
test eax, eax
je 0x41eebf
mov edx, dword [ebp - 0x64]
push edx
push 0x408ff4
call esi
test eax, eax
jne 0x41ee59
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x43113c]
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 0x41efe0
mov edx, dword [ebp - 0x64]
push edx
push 0x408ffc
call esi
test eax, eax
jne 0x41ee8a
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x43113c]
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 0x41efe0
mov edx, dword [ebp - 0x64]
push edx
push 0x409008
call esi
test eax, eax
jne 0x41efe0
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x43113c]
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 0x41efe0
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
push edx
lea eax, [ebp - 0x54]
push eax
call 0x41f0b0
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 0x408fec
call esi
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x40]
neg esi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp si, di
je 0x41ef39
push 0x4073bc
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push 0x41f08a
jmp 0x41f05f
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVar2Vec]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x41ef84
cmp word [eax], 1
jne 0x41ef84
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
neg esi
cmp esi, ecx
jb 0x41ef8c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x41ef8c
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 0x41f0a0
push eax
push ecx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov edx, dword [ebp - 0x3c]
add eax, 1
jo 0x41f0a0
push eax
mov eax, dword [edx + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.DLL_CreateIconFromResourceEx]
lea ecx, [ebp - 0x3c]
push ecx
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], edi
je 0x41f017
push 0x4073bc
lea edx, [ebp - 0x1c]
push edx
call fcn.0041bc40
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]
push eax
lea ecx, [ebp - 0x28]
push ecx
call esi
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
push 0x41f08a
jmp 0x41f05f
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 0x402386
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], 0x401d80
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 0x41f145
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov ecx, dword [0x43113c]
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 0x41f168
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x43113c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x41f348
mov edx, dword [0x43113c]
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 [0x43113c]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
movsx ecx, word [ebp + 0x14]
add ecx, 0xfffffff0
cmp ecx, 0x20
mov dword [0x431140], eax
ja case.0x41f1a9.20
xor edx, edx
mov dl, byte [ecx + 0x41f3d4]
jmp dword [edx*4 + 0x41f3c0]
mov edi, 1
jmp case.0x41f1a9.20
mov edi, 2
jmp case.0x41f1a9.20
mov edi, 3
jmp case.0x41f1a9.20
mov edi, 4
movsx ecx, word [ebp + 0x18]
add ecx, 0xfffffffc
cmp ecx, 0x1c
ja case.0x41f1de.8
xor edx, edx
mov dl, byte [ecx + 0x41f40c]
jmp dword [edx*4 + 0x41f3f8]
mov dword [ebp - 0x18], 1
jmp case.0x41f1de.8
mov dword [ebp - 0x18], 2
jmp case.0x41f1de.8
mov dword [ebp - 0x18], 3
jmp case.0x41f1de.8
mov dword [ebp - 0x18], 4
cmp word [0x431134], 0
jne 0x41f281
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
movsx esi, di
dec esi
cmp esi, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], 0x8003
jb 0x41f22c
call ebx
movsx edi, word [ebp - 0x18]
dec edi
cmp edi, 4
jb 0x41f238
call ebx
lea ecx, [esi + edi*4]
mov esi, dword [0x431154]
lea eax, [ebp - 0x68]
shl ecx, 4
push eax
add ecx, esi
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstNe]
test ax, ax
je 0x41f27a
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 0x41f38f
jmp 0x41f372
mov eax, dword [0x431140]
jmp 0x41f287
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
test eax, eax
jne 0x41f2ab
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 0x41f38f
jmp 0x41f372
push 0
sub eax, 1
jo 0x41f429
push eax
push 1
push 0x11
lea edx, [ebp - 0x2c]
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41f2ff
cmp word [ecx], 1
jne 0x41f2ff
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x41f2fb
call ebx
mov ecx, dword [ebp - 0x48]
mov eax, esi
jmp 0x41f304
call ebx
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x431140]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [ebp - 0x28]
push edx
add ecx, eax
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]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x68], 0x2011
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
push 0x41f38f
jmp 0x41f372
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 0x402386
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], 0x401d90
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, 0xffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
jg 0x41f486
cmp eax, ebx
jl 0x41f486
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 0x41f49a
lea eax, [ebp + 0x10]
push eax
call fcn.0041ba50
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [0x431154]
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 [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0x40
mov dword [ebp - 0x24], 0x568
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0x80]
mov dword [ebp - 0x24], 0x368
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0xc0
mov dword [ebp - 0x24], 0x468
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x24], 0x1e8
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0x50
mov dword [ebp - 0x24], 0x6c8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0x90]
mov dword [ebp - 0x24], 0x748
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0xd0
mov dword [ebp - 0x24], 0x988
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0x20]
mov dword [ebp - 0x24], 0x2e8
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0x60
mov dword [ebp - 0x24], 0x8a8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0xa0]
mov dword [ebp - 0x24], 0xca8
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0xe0
mov dword [ebp - 0x24], 0x10a8
mov dword [ebp - 0x2c], edi
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x24], 0x668
mov dword [ebp - 0x2c], edi
call esi
mov dword [ebp - 0x24], 0xea8
mov dword [ebp - 0x2c], edi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0x70
call esi
mov eax, dword [0x431154]
lea edx, [ebp - 0x2c]
lea ecx, [eax + 0xb0]
mov dword [ebp - 0x24], 0x1ca8
mov dword [ebp - 0x2c], edi
call esi
mov ecx, dword [0x431154]
lea edx, [ebp - 0x2c]
add ecx, 0xf0
mov dword [ebp - 0x24], 0x25a8
mov dword [ebp - 0x2c], edi
call esi
test bx, bx
je 0x41f65c
cmp dword [ebp + 0xc], 3
jne 0x41f65c
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [0x431132]
xor eax, eax
mov ax, word [0x431130]
push edx
push eax
push ecx
push 3
call fcn.0041f690
mov dword [ebp - 0x14], 1
push 0x41f672
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret