Function at 0x42f0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x48], eax
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x5d6490
push 1
push 0
push 0x5d64e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x42f2f3
push 0xa
push 0x132
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42f2e5
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f2e5
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x10]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x10]
call edx
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 0x14]
call eax
lea ecx, [ebp - 0x18]
push ecx
push 0x5d64f0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x42f2e5
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x42f2d7
lea edx, [ebp - 0x3c]
push edx
push 0x5d64a0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x42f2d7
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ecx
mov eax, 0x64366c
mov ecx, 0x42f310
call fcn.005452d0
test eax, eax
je 0x42f25b
jmp 0x42f2c9
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.005452f0
test eax, eax
je 0x42f26b
jmp 0x42f2c9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x643670], eax
mov byte [0x643635], 0
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x44]
push eax
push 0x104
lea ecx, [ebp - 0x250]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 4], eax
mov dword [0x643670], 0
cmp dword [ebp - 4], 0
jl 0x42f2bf
mov eax, dword [ebp + 8]
mov cl, byte [0x643635]
mov byte [eax], cl
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00545300
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret