Function at 0x40e750
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a12c
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460df4]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x590]
mov esi, dword [esp + 0x58c]
mov ebx, ecx
cmp dword [ebx + 0xb0], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
je 0x40e7d0
mov eax, dword [esp + 0x588]
cmp eax, dword [ebx + 0xc4]
jl 0x40e7d7
push 0x74
call fcn.00418c57
test eax, eax
je 0x40e7d0
push 0x74
push eax
mov ecx, ebp
call fcn.00401540
xor eax, eax
jmp 0x40ec62
test esi, esi
jne 0x40e7f7
push 0x75
call fcn.00418c57
test eax, eax
je 0x40e7f0
push 0x75
push eax
mov ecx, ebp
call fcn.00401540
xor eax, eax
jmp 0x40ec62
push esi
lea ecx, [esp + 0x3c]
call fcn.00405ac0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [ebx + 0x104]
mov dword [esp + 0x584], 0
call fcn.004063e0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x580], 0xffffffff
jb 0x40e83b
mov edx, dword [esp + 0x3c]
push edx
call fcn.00416a24
add esp, 4
push esi
mov ecx, ebx
call fcn.00407bb0
push eax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0040fad0
add esp, 0xc
cmp dword [esp + 0x30], 0
mov edi, eax
je 0x40e86e
push esi
push 0x76
push ebp
call fcn.004035c0
add esp, 0xc
xor eax, eax
jmp 0x40ec62
push 0x11000
push str.version
push edi
call fcn.0040ef90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e8a0
push edi
call fcn.0040f890
add esp, 4
push 0x6d
mov ecx, ebp
call fcn.004016c0
xor eax, eax
jmp 0x40ec62
push 8
lea ecx, [esp + 0x20]
push ecx
push str.version
push edi
call fcn.0040f200
add esp, 0x10
test eax, eax
je 0x40e8d8
push esi
call fcn.0040ed30
push edi
call fcn.0040f890
add esp, 8
push 0x6d
mov ecx, ebp
call fcn.004016c0
xor eax, eax
jmp 0x40ec62
mov edx, dword [esp + 0x24]
push edx
call fcn.00416a1f
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40e933
push esi
call fcn.0040ed30
push edi
call fcn.0040f890
push ebp
call fcn.00416a24
add esp, 0xc
push str.Do_not_open_file_zip
lea ecx, [esp + 0x38]
call fcn.004017b0
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x584], 1
call fcn.00408ad0
lea ecx, [esp + 0x34]
call fcn.004014a0
xor eax, eax
jmp 0x40ec62
mov eax, dword [esp + 0x24]
push eax
push ebp
push esi
call fcn.0040ee30
add esp, 0xc
cmp eax, dword [esp + 0x24]
push esi
je 0x40e96f
call fcn.0040ed30
push edi
call fcn.0040f890
push ebp
call fcn.00416a24
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x6d
call fcn.004016c0
xor eax, eax
jmp 0x40ec62
call fcn.0040ed30
push ebp
call fcn.00416a24
mov ecx, dword [esp + 0x590]
push ecx
lea edx, [esp + 0x7c]
push str.JXListFile_d
push edx
call fcn.004340f9
add esp, 0x14
lea eax, [ebx + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00403790
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x584], 2
call fcn.00404570
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40e9c9
lea eax, [esp + 0x58]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ea9b
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jae 0x40ea02
lea eax, [esp + 0x58]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x6c], esi
mov eax, dword [esp + 0x58]
jae 0x40ea19
lea eax, [esp + 0x58]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ea9b
push edi
call fcn.0040f890
mov eax, dword [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x6c], 0x10
jae 0x40ea4d
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x178]
push 0x44d390
push edx
call fcn.004340f9
lea eax, [esp + 0x180]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ea70
sub eax, edx
push eax
lea eax, [esp + 0x178]
push eax
mov ecx, ebx
call fcn.00407b90
lea ecx, [esp + 0x54]
call fcn.00402bb0
xor eax, eax
jmp 0x40ec62
push 0x11000
push str.listfile
push edi
call fcn.0040ef90
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40eadf
push edi
call fcn.0040f890
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push 0x6d
call fcn.004016c0
lea ecx, [esp + 0x54]
call fcn.00402bb0
xor eax, eax
jmp 0x40ec62
push 8
lea ecx, [esp + 0x20]
push ecx
push str.listfile
push edi
call fcn.0040f200
add esp, 0x10
test eax, eax
je 0x40eb29
push ebp
call fcn.0040ed30
push edi
call fcn.0040f890
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push 0x6d
call fcn.004016c0
lea ecx, [esp + 0x54]
call fcn.00402bb0
xor eax, eax
jmp 0x40ec62
mov edx, dword [esp + 0x24]
push edx
call fcn.00416a1f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40eb8a
push ebp
call fcn.0040ed30
push edi
call fcn.0040f890
push ebx
call fcn.00416a24
add esp, 0xc
push str.Do_not_open_file_zip
lea ecx, [esp + 0x1c]
call fcn.004017b0
mov ecx, dword [esp + 0x14]
push eax
mov byte [esp + 0x584], 3
call fcn.00408ad0
lea ecx, [esp + 0x18]
call fcn.004014a0
lea ecx, [esp + 0x54]
call fcn.00402bb0
xor eax, eax
jmp 0x40ec62
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.0040ee30
add esp, 0xc
cmp eax, dword [esp + 0x24]
push ebp
je 0x40ebd9
call fcn.0040ed30
push edi
call fcn.0040f890
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00416a24
mov ecx, dword [esp + 0x18]
add esp, 4
push 0x6d
call fcn.004016c0
lea ecx, [esp + 0x54]
call fcn.00402bb0
xor eax, eax
jmp 0x40ec62
call fcn.0040ed30
push edi
call fcn.0040f890
mov edx, dword [esp + 0x2c]
add esp, 8
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push ebx
push esi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00416a24
add esp, 4
test edi, edi
je 0x40ea8b
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40ec2c
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x588]
mov esi, dword [esp + 0x18]
push ecx
push eax
push edx
mov ecx, esi
call fcn.0040e0a0
test eax, eax
je 0x40ea8b
mov ecx, esi
call fcn.004078e0
lea ecx, [esp + 0x54]
call fcn.00402bb0
mov eax, 1
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.00432bb9
add esp, 0x570
ret 0xc