Function at 0x458c02
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x54
mov eax, 0x4907ea
call fcn.00474ec1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], ecx
cmp eax, esi
je 0x458e88
cmp word [eax], si
je 0x458e88
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x54], eax
cmp eax, esi
jne 0x458c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x458e8b
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edi, 0x49d9e4
push edi
mov dword [ebp - 4], esi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
lea esi, [ebp - 0x2c]
call fcn.0040ce4a
push dword [ebp - 0x4c]
call fcn.0046faa4
pop ecx
push dword [ebp - 0x4c]
mov ebx, eax
call fcn.0040ce4a
push edi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
call fcn.0040ce4a
mov ecx, dword [ebp - 0x2c]
push 8
pop esi
mov edx, ecx
cmp dword [ebp - 0x18], esi
jae 0x458d0f
lea edx, [ebp - 0x2c]
mov eax, edx
mov edi, dword [ebp - 0x1c]
lea eax, [eax + edi*2]
cmp dword [ebp - 0x18], esi
jae 0x458cc1
lea ecx, [ebp - 0x2c]
push 0x4739d9
push edx
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00418ff0
mov eax, dword [ebp - 0x2c]
add esp, 0x14
cmp dword [ebp - 0x18], esi
jae 0x458ce0
lea eax, [ebp - 0x2c]
push dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x458d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
mov eax, esi
jmp 0x458e8b
mov eax, ecx
jmp 0x458cb3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x458cf4
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
call esi
xor ecx, ecx
mov dword [ebp - 0x54], eax
cmp eax, ecx
jne 0x458d3c
mov esi, 0x54f
jmp 0x458cfc
cmp byte [ebp + 0x18], cl
jne 0x458d94
push ebx
push edi
call esi
lea esi, [eax + 2]
push esi
call fcn.0045c4ea
mov edi, eax
pop ecx
test edi, edi
je 0x458d35
push esi
push 0
push edi
call fcn.0046fc60
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x458d86
lea ecx, [esi - 2]
push ecx
push eax
push esi
push edi
call fcn.0046fd69
add esp, 0x10
push edi
push dword [ebp - 0x5c]
call fcn.004013e7
push edi
call fcn.0046e04a
pop ecx
xor esi, esi
jmp 0x458cfc
mov ebx, dword [ebp - 0x60]
cmp ebx, ecx
je 0x458e80
cmp word [ebx], cx
je 0x458e80
mov esi, dword [ebp - 0x58]
cmp esi, ecx
je 0x458e80
cmp word [esi], cx
je 0x458e80
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x458ddb
call edi
cmp eax, 0xb7
jne 0x458cfa
push ebx
lea ecx, [ebp - 0x48]
call fcn.0040a4c4
push esi
mov byte [ebp - 4], 1
call fcn.0046faa4
pop ecx
push esi
mov ebx, eax
lea esi, [ebp - 0x48]
call fcn.0040ce4a
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x4c], esi
jae 0x458e0b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x458e1e
lea eax, [ebp - 0x48]
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x458e54
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x58], esi
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x458e59
call edi
mov dword [ebp - 0x4c], eax
cmp ebx, 0xffffffff
je 0x458e65
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
mov eax, dword [ebp - 0x4c]
jmp 0x458e8b
push 0x57
pop esi
jmp 0x458cfc
push 0x57
pop eax
call fcn.00474f44
ret