Function at 0x460108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405480
mov eax, dword [ebp - 8]
call fcn.00405480
mov eax, dword [ebp - 0xc]
call fcn.00405480
xor eax, eax
push ebp
push 0x4603c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00405490
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4603a6
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00405490
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4603a6
xor edx, edx
push ebp
push 0x460396
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xe
mov eax, dword [ebp - 0xc]
call fcn.00405490
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x4601d1
push 0xe
mov eax, dword [ebp - 0xc]
call fcn.0040985c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x46037f
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x46037f
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x18], eax
test edi, edi
je 0x46037f
xor edx, edx
push ebp
push 0x460378
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
movzx edx, ax
mov dword [ebp - 0x1a8], edx
movzx eax, ax
dec eax
test eax, eax
jl 0x460314
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x194]
push 3
mov eax, dword [ebp - 0x1c]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + eax*2 + 0x12]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x460305
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x460305
xor eax, eax
push ebp
push 0x460299
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4602cd
mov eax, dword [esi]
call fcn.00402ac8
mov ebx, eax
mov dword [esi - 4], ebx
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov ecx, dword [esi]
mov eax, ebx
call fcn.00407f24
lea eax, [esi - 0x10]
call fcn.004600d0
test eax, eax
jne 0x460305
call fcn.004049ec
call fcn.004049ec
jmp 0x4603a6
inc dword [ebp - 0x1c]
add esi, 0x18
dec dword [ebp - 0x24]
jne 0x460239
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0x20]
call fcn.0045ff38
test al, al
je 0x46033c
lea edx, [ebp - 0x1a8]
mov eax, dword [ebp - 0x20]
call fcn.0045ffa8
test al, al
je 0x46033c
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46037f
cmp byte [ebp - 0xd], 1
jne 0x460377
mov eax, dword [ebp - 0x1a8]
dec eax
test eax, eax
jl 0x460377
inc eax
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x198]
mov eax, dword [ebx]
test eax, eax
je 0x46036f
call fcn.00402af8
add ebx, 0x18
dec dword [ebp - 0x24]
jne 0x460364
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46039d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4603c8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ff4
ret