Function at 0x408470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 8]
call fcn.00405490
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
call fcn.00405390
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4084a1
jmp 0x408641
mov edx, dword [ebp - 0x28]
push edx
call fcn.00405390
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4084c9
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x408641
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00405390
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041dd40
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40854f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x408571
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004078d0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
call fcn.00405170
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
call fcn.00405150
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
jmp 0x408599
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jae 0x408637
mov dword [ebp - 0x34], 0
jmp 0x4085b7
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x10]
jae 0x408632
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407890
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 3]
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp - 0x38]
mov byte [edx], al
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 1]
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 3]
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp - 0x38]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 2]
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 3]
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp - 0x38]
mov byte [edx + 2], al
jmp 0x4085ae
jmp 0x408590
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret