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

Disassembly:
push 0xffffffffffffffff
push 0x449f3c
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 0x40e6c0
mov eax, dword [esp + 0x588]
cmp eax, dword [ebx + 0xc4]
jl 0x40e6c7
push 0x74
call fcn.00418ab1
test eax, eax
je 0x40e6c0
push 0x74
push eax
mov ecx, ebp
call fcn.00401540
xor eax, eax
jmp 0x40eb52
test esi, esi
jne 0x40e6e7
push 0x75
call fcn.00418ab1
test eax, eax
je 0x40e6e0
push 0x75
push eax
mov ecx, ebp
call fcn.00401540
xor eax, eax
jmp 0x40eb52
push esi
lea ecx, [esp + 0x3c]
call fcn.00405a20
lea ecx, [esp + 0x38]
push ecx
lea ecx, [ebx + 0x104]
mov dword [esp + 0x584], 0
call fcn.004063c0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x580], 0xffffffff
jb 0x40e72b
mov edx, dword [esp + 0x3c]
push edx
call fcn.00416894
add esp, 4
push esi
mov ecx, ebx
call fcn.00407b80
push eax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0040f9c0
add esp, 0xc
cmp dword [esp + 0x30], 0
mov edi, eax
je 0x40e75e
push esi
push 0x76
push ebp
call fcn.00403490
add esp, 0xc
xor eax, eax
jmp 0x40eb52
push 0x11000
push str.version
push edi
call fcn.0040ee80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e790
push edi
call fcn.0040f780
add esp, 4
push 0x6d
mov ecx, ebp
call fcn.004016c0
xor eax, eax
jmp 0x40eb52
push 8
lea ecx, [esp + 0x20]
push ecx
push str.version
push edi
call fcn.0040f0f0
add esp, 0x10
test eax, eax
je 0x40e7c8
push esi
call fcn.0040ec20
push edi
call fcn.0040f780
add esp, 8
push 0x6d
mov ecx, ebp
call fcn.004016c0
xor eax, eax
jmp 0x40eb52
mov edx, dword [esp + 0x24]
push edx
call fcn.0041688f
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40e823
push esi
call fcn.0040ec20
push edi
call fcn.0040f780
push ebp
call fcn.00416894
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.00408a50
lea ecx, [esp + 0x34]
call fcn.004014a0
xor eax, eax
jmp 0x40eb52
mov eax, dword [esp + 0x24]
push eax
push ebp
push esi
call fcn.0040ed20
add esp, 0xc
cmp eax, dword [esp + 0x24]
push esi
je 0x40e85f
call fcn.0040ec20
push edi
call fcn.0040f780
push ebp
call fcn.00416894
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x6d
call fcn.004016c0
xor eax, eax
jmp 0x40eb52
call fcn.0040ec20
push ebp
call fcn.00416894
mov ecx, dword [esp + 0x590]
push ecx
lea edx, [esp + 0x7c]
push str.JXListFile_d
push edx
call fcn.00433f59
add esp, 0x14
lea eax, [ebx + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00403660
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x584], 2
call fcn.00404440
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40e8b9
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 0x40e98b
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jae 0x40e8f2
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 0x40e909
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 0x40e98b
push edi
call fcn.0040f780
mov eax, dword [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x6c], 0x10
jae 0x40e93d
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x178]
push 0x44d3bc
push edx
call fcn.00433f59
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 0x40e960
sub eax, edx
push eax
lea eax, [esp + 0x178]
push eax
mov ecx, ebx
call fcn.00407b60
lea ecx, [esp + 0x54]
call fcn.00402a30
xor eax, eax
jmp 0x40eb52
push 0x11000
push str.listfile
push edi
call fcn.0040ee80
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40e9cf
push edi
call fcn.0040f780
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.00402a30
xor eax, eax
jmp 0x40eb52
push 8
lea ecx, [esp + 0x20]
push ecx
push str.listfile
push edi
call fcn.0040f0f0
add esp, 0x10
test eax, eax
je 0x40ea19
push ebp
call fcn.0040ec20
push edi
call fcn.0040f780
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.00402a30
xor eax, eax
jmp 0x40eb52
mov edx, dword [esp + 0x24]
push edx
call fcn.0041688f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40ea7a
push ebp
call fcn.0040ec20
push edi
call fcn.0040f780
push ebx
call fcn.00416894
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.00408a50
lea ecx, [esp + 0x18]
call fcn.004014a0
lea ecx, [esp + 0x54]
call fcn.00402a30
xor eax, eax
jmp 0x40eb52
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.0040ed20
add esp, 0xc
cmp eax, dword [esp + 0x24]
push ebp
je 0x40eac9
call fcn.0040ec20
push edi
call fcn.0040f780
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00416894
mov ecx, dword [esp + 0x18]
add esp, 4
push 0x6d
call fcn.004016c0
lea ecx, [esp + 0x54]
call fcn.00402a30
xor eax, eax
jmp 0x40eb52
call fcn.0040ec20
push edi
call fcn.0040f780
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.00416894
add esp, 4
test edi, edi
je 0x40e97b
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40eb1c
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.0040df90
test eax, eax
je 0x40e97b
mov ecx, esi
call fcn.004078b0
lea ecx, [esp + 0x54]
call fcn.00402a30
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.00432a13
add esp, 0x570
ret 0xc