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

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x244
push 0xffffffffffffffff
push 0x6d1ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x7df5fc]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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 0x46618d
push str.Failed:_Path_longer_than_MAX_PATH_r_n
call fcn.00448378
pop ecx
xor al, al
jmp 0x466309
push 0xa
push 0x2328
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4661b1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push str.Failed_FindResource_r_n
jmp 0x466180
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 0x4661dc
push str.Failed_Lock_Load_Resource_r_n
call fcn.00448378
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
jmp 0x466186
add esi, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4661e9
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x4661f9
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.00462532
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
mov dword [ebp - 4], ebx
jb 0x466224
mov eax, dword [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 0x46625a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_CreateFile_with_error:__d_r_n
mov dword [edi], eax
call fcn.00448378
pop ecx
jmp 0x4662fe
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 0x466294
push str.Failed_WriteFile_r_n
call fcn.00448378
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4662ff
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 0x4662b6
push str.Failed_wrote_too_few_bytes._r_n
call fcn.00448378
jmp 0x4662fe
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.00462532
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 + 0x68]
lea ecx, [ebp]
mov bl, al
call fcn.00462599
test bl, bl
jne 0x4662f2
push str.Failed_Unzip_r_n
call fcn.00448378
xor ebx, ebx
jmp 0x4662fe
push str.Success_r_n
call fcn.00448378
mov bl, 1
pop ecx
lea ecx, [ebp + 0x1c]
call fcn.00462599
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.00689f2f
add ebp, 0x244
leave
ret 0xc