Function at 0x551d7f
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x614b80]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x74], edi
call fcn.005519da
push 0
lea ebx, [edi + 0x610]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov esi, 0x200
test eax, eax
jne 0x551ddd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x551ddd
lea eax, [edi + 0x410]
push eax
push esi
push ebx
call fcn.0057a7c3
add esp, 0xc
push ebx
call fcn.0057bb80
pop ecx
test eax, eax
jle 0x551e18
cmp byte [edi + eax + 0x60f], 0x5c
lea eax, [edi + 0xa10]
push eax
push ebx
lea eax, [ebp + 0x194]
jne 0x551e07
push str._s_s
jmp 0x551e0c
push 0x5c0cd4
push esi
push eax
call fcn.00439b20
add esp, 0x14
jmp 0x551e34
lea eax, [edi + 0xa10]
push eax
push 0x5a0fa0
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00439b20
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
push str._dwExtract_SYS__Extract__s_n
push edi
call fcn.00550c05
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp + 0x194]
push eax
call ebx
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
lea eax, [ebp + 0x194]
push eax
je 0x551ead
push str._dwExtract_SYS__File__s_does_already_exist_n
push edi
call fcn.00550c05
add esp, 0xc
xor esi, esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057943e
add ebp, 0x398
leave
ret 4
push str._dwExtract_SYS__File__s_successfully_created_n
push edi
call fcn.00550c05
push dword [ebp + 0x3a0]
call fcn.00551b0b
add esp, 0x10
test eax, eax
jne 0x551ee5
push dword [ebp + 0x3a0]
push str._dwExtract_SYS__Wrong_res_ID___X_n
push edi
call fcn.00550c05
add esp, 0xc
mov eax, 0x5007
jmp 0x551e93
lea eax, [edi + 0x810]
cmp byte [eax], 0
je 0x551f16
push eax
push str._dwExtract_SYS__host_name__s_n
push edi
call fcn.00550c05
lea eax, [edi + 0x810]
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0057a7c3
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
jmp 0x551f18
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x551f45
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push str._dwExtract_SYS__GetModuleHandle_on__s_failed__error_d_n
push edi
call fcn.00550c05
add esp, 0x10
jmp 0x551e91
movzx eax, word [ebp + 0x3a0]
push 0xa
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x551f7b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str._dwExtract_SYS__FindResource_failed__error_d_n
push edi
call fcn.00550c05
add esp, 0xc
jmp 0x551e91
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x551f99
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str._dwExtract_SYS__LoadResource_failed__error_d_n
jmp 0x551f6d
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x78], eax
xor eax, eax
cmp dword [ebp - 0x78], eax
jne 0x551fc9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str._dwExtract_SYS__Size_of_resousrce__0__error_d_n
jmp 0x551f6d
push eax
push 0x80
push 2
push eax
push eax
mov edi, 0xc0000000
push edi
lea eax, [ebp + 0x194]
push eax
call ebx
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
jne 0x5520dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp + 0x194]
push eax
push str._dwExtract_SYS__Unable_to_create_the_file__s__error_d__1__n
push dword [ebp - 0x74]
call fcn.00550c05
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push edi
lea eax, [ebp + 0x194]
push eax
call ebx
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
jne 0x5520dd
lea eax, [ebp + 0x194]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
jbe 0x5520dd
push 0x5a0618
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00439c00
mov eax, dword [ebp - 0x74]
add eax, 0xa10
push eax
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00439c00
add esp, 0x18
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push edi
lea eax, [ebp + 0x194]
push eax
call ebx
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
jne 0x5520b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
lea eax, [ebp + 0x194]
push eax
push str._dwExtract_SYS__Unable_to_create_the_file__s__error_d__2__n
push dword [ebp - 0x74]
jmp 0x551f38
mov edi, dword [ebp - 0x74]
lea eax, [ebp + 0x194]
push eax
push str._dwExtract_SYS__File__s_successfully_created__2_._n
push edi
call fcn.00550c05
add esp, 0xc
lea eax, [edi + 0x610]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor esi, esi
push esi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x551e88
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str._dwExtract_SYS__WriteFile_failed__error_d__2__n
push dword [ebp - 0x74]
call fcn.00550c05
add esp, 0xc
jmp 0x551e88