Function at 0x4c7c3c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor eax, eax
push 8
push 0x40
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call edi
push 0x10
push 0x40
mov esi, eax
call edi
mov ebx, dword [ebp + 0xc]
mov dword [esi], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebx]
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
push edx
push 0x40
call edi
mov ecx, dword [esi]
push 0x10
push 0x40
mov dword [ecx + 8], eax
call edi
mov dword [esi + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push eax
push 0x40
call edi
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
mov edx, dword [ebx]
add edx, edx
add edx, edx
push edx
push 0x40
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
add eax, eax
add eax, eax
push eax
push 0x40
call edi
cmp dword [ebx], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jbe 0x4c7c3dde
mov ecx, dword [ebp - 0x1c]
add ebx, 8
xor edi, edi
sub ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx + edi + 4], eax
mov edx, dword [esi]
movzx eax, word [ecx]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
add ebx, edi
mov word [ebx], ax
movzx eax, ax
push 0x204
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [ebp + 8]
push eax
push edx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + edx], eax
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edi + 8]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [ecx + edi + 4], edx
movzx eax, word [eax]
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + 8]
movzx edx, ax
push 0x205
add ebx, edi
mov word [ebx], ax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
add dword [ebp - 8], 0x14a
mov dword [ebx + 8], eax
mov dword [ecx], edx
mov eax, dword [esi + 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + edi + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add ecx, 4
add eax, 1
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
add edi, 0xc
cmp eax, dword [ecx]
mov dword [ebp - 4], eax
jb 0x4c7c3d03
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, ecx
mov edx, dword [esi]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
push 0x40
call edi
mov edx, dword [esi]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
push 0x40
call edi
mov edx, dword [esi + 4]
mov dword [edx + 0xc], eax
xor eax, eax
cmp dword [ebx], eax
mov dword [ebp - 4], eax
jbe 0x4c7c3f00
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
jmp 0x4c7c3e33
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ecx]
xor ebx, ebx
xor edi, edi
test eax, eax
je 0x4c7c3e82
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 0xc]
add edx, ebx
mov ebx, dword [edx + 4]
add ebx, dword [ecx + 0xc]
mov ecx, dword [edx + 8]
push ecx
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x4c7c3e82
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
test eax, eax
je 0x4c7c3ecd
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 8]
mov edi, dword [ebp - 0xc]
add edx, edi
mov edi, dword [edx + 4]
add edi, dword [ecx + 0xc]
mov ecx, dword [edx + 8]
push ecx
push eax
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x4c7c3ecd
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c7c3ee4
mov edx, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
push edx
push eax
call fcn.4c7c3810
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
add dword [ebp - 0x10], 4
add dword [ebp - 0xc], 0xc
add eax, 1
cmp eax, dword [ecx]
mov dword [ebp - 4], eax
jb 0x4c7c3e30
mov eax, dword [ebp - 0x1c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4c7c3f10
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4c7c3f1a
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc