Function at 0x48e2e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b83a2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x7c]
push 0xa
xor eax, eax
mov dword [ebp - 0x6c], 0
push str.resourceID
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004271d0
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.005c9ab0
test al, al
je 0x48e3cc
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
push str.resourceType
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004271d0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov ebx, 3
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.005c9ab0
test al, al
je 0x48e3cc
push 0xa
xor eax, eax
mov dword [ebp - 0x30], 0
push str.outputPath
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004271d0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
mov ebx, 7
call fcn.005c9ab0
mov byte [ebp - 0x5d], 1
test al, al
jne 0x48e3d0
mov byte [ebp - 0x5d], 0
test bl, 4
je 0x48e3e0
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffb
call fcn.00427170
test bl, 2
je 0x48e3ed
lea ecx, [ebp - 0x28]
call fcn.00427170
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
cmp byte [ebp - 0x5d], 0
je 0x48e607
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
push 0xa
push str.resourceID
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004271d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005c9b20
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00427170
push 0xc
xor eax, eax
mov dword [ebp - 0x6c], 0
push str.resourceType
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004271d0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005c9b20
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00427170
push 0xa
xor eax, eax
mov dword [ebp - 0x6c], 0
push str.outputPath
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.004271d0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005c9b20
lea ecx, [ebp - 0x7c]
call fcn.00427170
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00680aa7
add esp, 4
movzx eax, ax
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x48e5d7
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x48e5c9
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0
cmovae ecx, dword [ebp - 0x58]
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
test esi, esi
jne 0x48e597
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_create_file____d
call fcn.00432240
add esp, 8
push 0
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x48e5c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_write_to_file____d
call fcn.00432240
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x48e5eb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_loaded____d
jmp 0x48e5e3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_found____d
call fcn.00432240
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00427170
lea ecx, [ebp - 0x28]
call fcn.00427170
lea ecx, [ebp - 0x40]
call fcn.00427170
mov al, 1
jmp 0x48e609
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret