Function at 0x45ab30
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.00404a50
test al, al
je 0x45ab63
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
add esp, 0xc
jmp 0x45ab6d
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
cmp dword [0x4e4c00], 0
mov esi, eax
je 0x45ad5f
cmp esi, 1
mov esi, dword [ebp + 0xc]
je 0x45abd8
mov ecx, esi
call fcn.00471be0
test al, al
je 0x45abd8
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x45abbc
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4b8c14
push 0
push 0x4cefc4
mov ecx, edi
call fcn.004473a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45ab8f
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ac00
sub ecx, esi
mov eax, 0x103
sar ecx, 1
cmp ecx, 0x104
cmovae ecx, eax
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr]
add esp, 4
lea eax, [esp + 0x20]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45ad35
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45ad35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45ad35
cmp dword [esi], 0x4034b50
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x45acf4
push 0
push edi
push 0
call eax
push eax
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.0049f530
add esp, 8
test eax, eax
je 0x45acef
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
sete byte [esp + 0x13]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], al
push dword [esp + 0x14]
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0
call eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push ebx
sete byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], al
push dword [esp + 0x14]
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], al
push dword [esp + 0x14]
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [esp + 0x24]
push eax
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [0x4e7838]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
xor eax, eax
cmp esi, 1
setne al
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x4e4970
mov esi, eax
call edi
mov ecx, dword [esp + 0x1c]
test esi, esi
sete byte [esp + 0x14]
push dword [esp + 0x14]
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc