Function at 0x4139b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x413a02
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x5a956c
call fcn.00414080
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x413ca7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
je 0x413c9a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0xe
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x413a57
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x413a7f
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x413aa3
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 4]
sub edx, 1
shl edx, 5
add edx, 0x230
push edx
call fcn.00451564
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413af5
push 0
mov eax, dword [ebp + 8]
push eax
push 0x5a955c
call fcn.00414080
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x108
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5a7b30
mov edx, dword [ebp - 8]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x2c], 0
jmp 0x413b3f
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x20c]
jae 0x413c9a
push 3
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xe
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + eax + 0x12]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x413b94
mov ecx, dword [ebp - 8]
push ecx
call fcn.0045147b
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x413bc8
mov edx, dword [ebp - 8]
push edx
call fcn.0045147b
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x2c]
shl ecx, 5
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 0x220], eax
mov eax, dword [ebp - 0x2c]
shl eax, 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x220]
push edx
call fcn.00451564
add esp, 4
mov ecx, dword [ebp - 0x2c]
shl ecx, 5
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 0x21c], eax
mov eax, dword [ebp - 0x2c]
shl eax, 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x220]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 5
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x21c]
push eax
call fcn.00450890
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
shl ecx, 5
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x210]
push eax
mov ecx, dword [ebp - 4]
call fcn.004137d0
test eax, eax
jne 0x413c95
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x5a9540
call fcn.00414080
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 8]
push eax
call fcn.0045147b
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x413ca7
jmp 0x413b36
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8