Function at 0x447860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
push 0x4c1e80
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [0x4e567c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x447aff
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x447aff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x447aff
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
call fcn.00446f20
cmp dword [ebp - 0x18], 0xe
jae 0x4478ea
xor eax, eax
jmp 0x447b01
push 0xe
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00489120
add esp, 0xc
movzx eax, word [ebp - 0x30]
cmp eax, 0x4d42
je 0x44790e
xor eax, eax
jmp 0x447b01
mov dword [ebp - 0x14], 0xe
mov ecx, dword [ebp - 0x18]
sub ecx, 0xe
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xe
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x26]
add eax, 0x3f2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 8], 0
jne 0x447955
xor eax, eax
jmp 0x447b01
mov eax, dword [ebp - 0x26]
sub eax, 0xe
cmp dword [ebp - 0x18], eax
jae 0x447999
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], 0
xor eax, eax
jmp 0x447b01
mov eax, dword [ebp - 0x26]
sub eax, 0xe
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 8]
push eax
call fcn.00489120
add esp, 0xc
mov ecx, dword [ebp - 0x26]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx - 0xe]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x26]
sub ecx, 0xe
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x26]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax - 0xe]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x26]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x34]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jne 0x447a3f
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], 0
xor eax, eax
jmp 0x447b01
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x26]
cmp dword [ebp - 0x18], eax
jae 0x447ab2
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x447b01
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x26]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call fcn.00489120
add esp, 0xc
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x26]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x26]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x26]
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
call fcn.004471a0
mov eax, dword [ebp - 0x14]
jmp 0x447b01
xor eax, eax
mov esp, ebp
pop ebp
ret 8