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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec1d5
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x67d070]
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 - 0x68], 7
push str.resourceID
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
call fcn.00407060
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
mov ebx, 1
push eax
mov ecx, esi
mov dword [ebp - 0x64], ebx
call fcn.00439040
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x45dfd1
push str.resourceType
lea ecx, [ebp - 0xac]
call fcn.00406e60
lea eax, [ebp - 0xac]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
mov ebx, 3
push eax
mov ecx, esi
mov dword [ebp - 0x64], ebx
call fcn.00439040
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x45dfd1
push str.outputPath
lea ecx, [ebp - 0x94]
call fcn.00406e60
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
mov ebx, 7
push eax
call fcn.00439040
mov byte [ebp - 0x5d], 1
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x45dfd5
mov byte [ebp - 0x5d], 0
test bl, 4
je 0x45e012
mov eax, dword [ebp - 0x80]
and ebx, 0xfffffffb
cmp eax, 8
jb 0x45dff8
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
test bl, 2
je 0x45e055
mov eax, dword [ebp - 0x98]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x45e038
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x45e076
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x45e076
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00407b40
cmp byte [ebp - 0x5d], 0
je 0x45e2bb
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], 2
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push str.resourceID
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00406e60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.004b3b80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x45e0f4
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00407b40
push str.resourceType
lea ecx, [ebp - 0x7c]
call fcn.00406e60
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.004b3b80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x45e12d
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00407b40
push str.outputPath
lea ecx, [ebp - 0x7c]
call fcn.00406e60
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.004b3b80
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x45e162
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00407b40
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.005cd69a
add esp, 4
movzx eax, ax
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x45e23c
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x45e22e
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 - 0x18], 8
lea ecx, [ebp - 0x2c]
push 0
cmovae ecx, dword [ebp - 0x2c]
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 0x45e1fc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_create_file____d
call fcn.0042c700
add esp, 8
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x64]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x45e225
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_write_to_file____d
call fcn.0042c700
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x45e250
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_loaded____d
jmp 0x45e248
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_found____d
call fcn.0042c700
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x45e265
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x45e28e
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x45e2b7
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407b40
mov al, 1
jmp 0x45e2bd
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.00599c70
mov esp, ebp
pop ebp
ret