Function at 0x4c7c3f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
push 8
add ebx, ebx
push 0x40
mov dword [ebp - 0x20], ebx
call edi
push 0x10
push 0x40
mov esi, eax
call edi
mov dword [esi], eax
mov dword [eax], ebx
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
push eax
push 0x40
mov dword [ebp - 0x24], eax
call edi
mov ecx, dword [esi]
push 0x10
push 0x40
mov dword [ecx + 8], eax
call edi
mov edx, dword [ebp - 0x24]
push edx
mov dword [esi + 4], eax
push 0x40
mov dword [eax], ebx
call edi
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
lea eax, [ebx*4]
push eax
push 0x40
mov dword [ebp - 0x24], eax
call edi
mov edx, dword [ebp - 0x24]
push edx
push 0x40
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov dword [ebp - 0x24], eax
je 0x4c7c4251
test eax, eax
je 0x4c7c423f
xor edx, edx
test ebx, ebx
mov dword [ebp - 4], edx
jbe 0x4c7c40fc
xor edi, edi
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jmp 0x4c7c3fe3
mov edx, dword [ebp - 4]
test dl, 1
mov ecx, dword [ebp + 0xc]
jne 0x4c7c401c
xor eax, eax
cmp dword [ecx], eax
jbe 0x4c7c401c
mov ebx, dword [ebp + 0x10]
shr edx, 1
imul edx, edx, 0x88
mov ebx, dword [edx + ebx + 0x48]
lea edx, [ecx + 0x10a]
cmp dword [edx], ebx
je 0x4c7c4019
add eax, 1
add edx, 0x14a
cmp eax, dword [ecx]
jb 0x4c7c4006
jmp 0x4c7c401c
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov dword [edx + edi + 4], eax
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x14a
lea eax, [edx + ecx + 8]
mov ecx, dword [esi]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
movzx eax, word [eax]
movzx edx, ax
push 0x204
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 - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + ecx], edx
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, dword [eax + edi + 8]
mov edx, dword [esi + 4]
mov eax, dword [edx + 8]
add dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [eax + edi + 4], ecx
movzx eax, word [edx]
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 - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
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 - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 1
add ecx, 4
add edi, 0xc
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jb 0x4c7c3fe0
mov ebx, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
push 0x40
call edi
mov ecx, dword [esi]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
push 0x40
call edi
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 4], eax
jbe 0x4c7c4222
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x14], eax
jmp 0x4c7c4153
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + eax]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x20], edi
je 0x4c7c41ac
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov edx, dword [eax + 4]
add edx, dword [ecx + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
push ecx
push eax
push edx
mov dword [ebp - 0x20], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x4c7c41ac
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x4c7c41f7
mov edx, dword [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], 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 - 0x10]
add esp, 0xc
test eax, eax
je 0x4c7c41f7
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
push edx
push edi
push eax
push ecx
call fcn.4c7c3a70
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], 4
add dword [ebp - 0xc], 0xc
add eax, 1
cmp eax, ebx
mov dword [ebp - 4], eax
jb 0x4c7c4150
mov edx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
call edi
mov eax, dword [ebp - 0x24]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x4c7c425c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc