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

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x7aa378]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x10
mov eax, 0x6a09e2
call fcn.00642ca6
mov esi, dword [ebp + 0x24c]
xor ebx, ebx
mov eax, dword [ebp + 0x250]
mov edi, dword [ebp + 0x254]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x14], 0x104
mov dword [ebp - 0x14], ebx
jbe 0x44df58
push str.Failed:_Path_longer_than_MAX_PATH_r_n
call fcn.004288de
pop ecx
xor al, al
jmp 0x44e0d6
push 0xa
push 0x2328
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44df7c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push str.Failed_FindResource_r_n
jmp 0x44df4b
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x44dfa7
push str.Failed_Lock_Load_Resource_r_n
call fcn.004288de
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
jmp 0x44df51
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x44dfb4
mov eax, dword [esi]
jmp 0x44dfb6
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x44dfc6
mov esi, dword [esi]
push str.hta.zip
push esi
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00447fb7
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], ebx
jae 0x44dff1
lea eax, [ebp + 0x20]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e027
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_CreateFile_with_error:__d_r_n
mov dword [edi], eax
call fcn.004288de
pop ecx
jmp 0x44e0cb
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x44e061
push str.Failed_WriteFile_r_n
call fcn.004288de
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x44e0cc
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [ebp - 0x14], eax
je 0x44e083
push str.Failed_wrote_too_few_bytes._r_n
call fcn.004288de
jmp 0x44e0cb
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.00447fb7
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp]
push edx
lea edx, [ebp + 0x1c]
mov byte [ebp - 4], 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x64]
lea ecx, [ebp]
mov bl, al
call fcn.0044803c
test bl, bl
jne 0x44e0bf
push str.Failed_Unzip_r_n
call fcn.004288de
xor ebx, ebx
jmp 0x44e0cb
push str.Success_r_n
call fcn.004288de
mov bl, 1
pop ecx
lea ecx, [ebp + 0x1c]
call fcn.0044803c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00642c5e
lea esp, [ebp + 0x244]
pop ebp
ret 0xc