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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5976c5
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x60a070]
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.00413c10
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.00438680
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x446d71
push str.resourceType
lea ecx, [ebp - 0xac]
call fcn.00413890
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.00438680
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x446d71
push str.outputPath
lea ecx, [ebp - 0x94]
call fcn.00413890
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
mov ebx, 7
push eax
call fcn.00438680
mov byte [ebp - 0x5d], 1
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x446d75
mov byte [ebp - 0x5d], 0
test bl, 4
je 0x446db2
mov eax, dword [ebp - 0x80]
and ebx, 0xfffffffb
cmp eax, 8
jb 0x446d98
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.00414580
xor eax, eax
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
test bl, 2
je 0x446df5
mov eax, dword [ebp - 0x98]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x446dd8
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.00414580
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 0x446e16
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x446e16
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00414580
cmp byte [ebp - 0x5d], 0
je 0x44705b
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.00413890
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0050f030
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x446e94
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00414580
push str.resourceType
lea ecx, [ebp - 0x7c]
call fcn.00413890
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0050f030
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x446ecd
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00414580
push str.outputPath
lea ecx, [ebp - 0x7c]
call fcn.00413890
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0050f030
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x446f02
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00414580
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.0057acc0
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 0x446fdc
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x446fce
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 0x446f9c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_create_file____d
call fcn.00446ae0
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 0x446fc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_write_to_file____d
call fcn.00446ae0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x446ff0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_loaded____d
jmp 0x446fe8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_found____d
call fcn.00446ae0
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x447005
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414580
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 0x44702e
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00414580
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 0x447057
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00414580
mov al, 1
jmp 0x44705d
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.0055eeb4
mov esp, ebp
pop ebp
ret