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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a0162
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x7ca00c]
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.00428800
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.005d8050
test al, al
je 0x493ebc
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.00428800
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov ebx, 3
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.005d8050
test al, al
je 0x493ebc
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.00428800
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
mov ebx, 7
call fcn.005d8050
mov byte [ebp - 0x5d], 1
test al, al
jne 0x493ec0
mov byte [ebp - 0x5d], 0
test bl, 4
je 0x493ed0
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffb
call fcn.00428770
test bl, 2
je 0x493edd
lea ecx, [ebp - 0x28]
call fcn.00428770
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428770
cmp byte [ebp - 0x5d], 0
je 0x4940f7
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.00428800
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005d80c0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00428770
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.00428800
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005d80c0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00428770
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.00428800
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.005d80c0
lea ecx, [ebp - 0x7c]
call fcn.00428770
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00667c77
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 0x4940c7
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4940b9
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 0x494087
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_create_file____d
call fcn.00433790
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 0x4940b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_write_to_file____d
call fcn.00433790
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4940db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_loaded____d
jmp 0x4940d3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_found____d
call fcn.00433790
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00428770
lea ecx, [ebp - 0x28]
call fcn.00428770
lea ecx, [ebp - 0x40]
call fcn.00428770
mov al, 1
jmp 0x4940f9
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.0063de71
mov esp, ebp
pop ebp
ret