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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dfaa2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x82d084]
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.0042fe00
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.0060bb00
test al, al
je 0x4a418c
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.0042fe00
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov ebx, 3
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call fcn.0060bb00
test al, al
je 0x4a418c
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.0042fe00
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
mov ebx, 7
call fcn.0060bb00
mov byte [ebp - 0x5d], 1
test al, al
jne 0x4a4190
mov byte [ebp - 0x5d], 0
test bl, 4
je 0x4a41a0
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffb
call fcn.0042fd70
test bl, 2
je 0x4a41ad
lea ecx, [ebp - 0x28]
call fcn.0042fd70
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
cmp byte [ebp - 0x5d], 0
je 0x4a43c7
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.0042fe00
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0060bb70
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.0042fd70
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.0042fe00
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0060bb70
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.0042fd70
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.0042fe00
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0060bb70
lea ecx, [ebp - 0x7c]
call fcn.0042fd70
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.006a6177
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 0x4a4397
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4a4389
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 0x4a4357
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_create_file____d
call fcn.0043adc0
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 0x4a4380
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_write_to_file____d
call fcn.0043adc0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4a43ab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_loaded____d
jmp 0x4a43a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Resource_could_not_be_found____d
call fcn.0043adc0
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.0042fd70
lea ecx, [ebp - 0x28]
call fcn.0042fd70
lea ecx, [ebp - 0x40]
call fcn.0042fd70
mov al, 1
jmp 0x4a43c9
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.0067ba01
mov esp, ebp
pop ebp
ret