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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d01b4
mov eax, dword fs:[0]
push eax
mov eax, 0x102ac
call fcn.005777d0
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0
mov edi, dword [ebp + 8]
je 0x536172
test edi, edi
jne 0x536088
lea edi, [esi + 0x34]
push edi
call fcn.00536a00
test al, al
jne 0x536179
cmp dword [esi + 0x248], 0
je 0x5360c6
lea ecx, [ebp - 0x1029c]
call fcn.00518ad0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x5360bb
mov edx, dword [edx]
mov eax, dword [esi + 0x248]
jmp 0x53614b
cmp dword [0x656c44], 0
je 0x536121
lea ecx, [ebp - 0x1029c]
call fcn.00518ad0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x5360e9
mov eax, dword [eax]
push eax
push edi
push str.Failed_to_create_destinationFolder__s.___s
push 0x5f8398
push 0x5f8398
push str.UnzipHandler
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x1029c]
call fcn.004087d0
xor al, al
jmp 0x5367b8
cmp dword [0x656c48], 0
je 0x536172
lea ecx, [ebp - 0x1029c]
call fcn.00518ad0
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x536146
mov edx, dword [edx]
mov eax, dword [0x656c48]
mov ecx, dword [eax]
push edx
push edi
push str.Failed_to_create_destinationFolder__s.___s
push str.UnzipHandler
push 0x5f8398
push 0x32
push eax
call dword [ecx + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x1029c]
call fcn.004087d0
xor al, al
jmp 0x5367b8
lea eax, [ebp - 0x10280]
mov ecx, esi
push eax
call fcn.00536870
push edi
lea ecx, [ebp - 0x10028]
call fcn.00408810
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10018]
test ecx, ecx
je 0x5361d0
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x5361d0
push 0x5f8f64
lea ecx, [ebp - 0x10028]
call fcn.0040c4b0
lea eax, [ebp - 0x10280]
push eax
lea ecx, [ebp - 0x1029c]
call fcn.004088b0
push ecx
lea edx, [ebp - 0x1029c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10044]
call fcn.0051c990
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10288]
cmp eax, 0x10
jb 0x53621d
inc eax
lea ecx, [ebp - 0x1029c]
push eax
push dword [ebp - 0x1029c]
call fcn.00408df0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10044]
mov dword [ebp - 0x10288], 0xf
push eax
lea ecx, [ebp - 0x10028]
mov dword [ebp - 0x1028c], 0
mov byte [ebp - 0x1029c], 0
call fcn.0040aa30
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
mov edi, dword [ebp - 0x10054]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.005aa916
add esp, 4
mov ebx, eax
push 0x5c
push ebx
call fcn.0059003a
add esp, 8
mov byte [ebp - 0x10281], 0
test eax, eax
je 0x53629c
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00536a00
mov byte [ebp - 0x10281], al
push ebx
call fcn.0058f17b
add esp, 4
cmp byte [ebp - 0x10281], 0
jne 0x53639a
cmp dword [esi + 0x248], 0
je 0x5362e0
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov edi, eax
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x5362d4
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x53637b
cmp dword [0x656c44], 0
je 0x53634e
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov ecx, eax
mov byte [ebp - 4], 8
cmp dword [ecx + 0x14], 8
jb 0x536302
mov ecx, dword [ecx]
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push ecx
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Failed_to_CreateFilePath:__s.__s
push 0x5f8398
push 0x5f8398
push str.UnzipHandler
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.004087d0
xor bl, bl
jmp 0x53675d
cmp dword [0x656c48], 0
je 0x536584
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 8
jb 0x536374
mov esi, dword [esi]
mov ecx, dword [0x656c48]
push esi
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Failed_to_CreateFilePath:__s.__s
jmp 0x536564
mov cl, byte [ebp - 0x1004c]
test cl, cl
je 0x5363cf
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
test edi, edi
je 0x5363cf
cmp edi, 0xffffffff
je 0x5363cf
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp - 0x1004c]
cmp dword [ebp - 0x10030], 8
lea eax, [ebp - 0x10044]
lea edx, [esi + 0x18]
mov dword [esi + 0x1c], 0
cmovae eax, dword [ebp - 0x10044]
cmp dword [ebp - 0x10014], 8
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
mov dword [esi + 0x28], eax
xor eax, eax
test cl, cl
mov byte [esi + 0x2c], cl
push edx
setne al
lea eax, [eax*2 + 1]
mov dword [edx], eax
mov eax, dword [esi + 0x30]
call eax
add esp, 4
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [eax - 1]
cmp ecx, 1
ja 0x536441
cmp eax, 2
jmp 0x53675a
cmp byte [ebp - 0x1004c], 0
je 0x536451
mov bl, 1
jmp 0x53675d
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push 0
cmovae eax, dword [ebp - 0x10028]
push edi
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x53658b
cmp dword [esi + 0x248], 0
je 0x5364b3
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x5364a7
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x53654a
cmp dword [0x656c44], 0
je 0x536521
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov ecx, eax
mov byte [ebp - 4], 0xb
cmp dword [ecx + 0x14], 8
jb 0x5364d5
mov ecx, dword [ecx]
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push ecx
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Cannot_open_file__s_for_writing:__s
push 0x5f8398
push 0x5f8398
push str.UnzipHandler
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.004087d0
xor bl, bl
jmp 0x53675d
cmp dword [0x656c48], 0
je 0x536584
lea ecx, [ebp - 0x102b4]
call fcn.00518ad0
mov esi, eax
mov byte [ebp - 4], 0xc
cmp dword [esi + 0x14], 8
jb 0x536543
mov esi, dword [esi]
mov ecx, dword [0x656c48]
push esi
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Cannot_open_file__s_for_writing:__s
mov edx, dword [ecx]
push str.UnzipHandler
push 0x5f8398
push 0x32
push ecx
call dword [edx + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x102b4]
call fcn.004087d0
xor bl, bl
jmp 0x53675d
push dword [esi + 0x240]
mov ecx, dword [esi + 8]
sub esp, 8
call fcn.00541750
add esp, 0xc
test eax, eax
je 0x536645
mov edx, dword [esi + 0x248]
test edx, edx
jne 0x536608
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x5365fe
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Failed_to_unzOpenCurrentFilePassword:__s
push 0x5f8398
push 0x5f8398
push str.UnzipHandler
push 0x61c4f4
push 0x32
call ecx
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x53675d
mov edx, dword [0x656c48]
test edx, edx
je 0x536637
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
mov ecx, dword [edx]
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Failed_to_unzOpenCurrentFilePassword:__s
push str.UnzipHandler
push 0x5f8398
push 0x32
push edx
call dword [ecx + 0x34]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x53675d
mov dword [esi + 0x18], 2
nop dword [eax]
cmp byte [ebp + 0x14], 0
mov ecx, dword [esi + 8]
jne 0x536666
push 0x10000
lea edx, [ebp - 0x10010]
jmp 0x536671
mov edx, dword [esi + 0x244]
push 0x40000
call fcn.00541a40
mov edi, eax
add esp, 4
test edi, edi
jle 0x5366cf
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x1002c]
push 0
push eax
mov dword [ebp - 0x1002c], edi
push edi
jne 0x53669e
lea eax, [ebp - 0x10010]
push eax
jmp 0x5366a4
push dword [esi + 0x244]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5366cc
mov eax, dword [ebp - 0x1002c]
cmp eax, edi
jne 0x5366cc
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 0x30]
call eax
add esp, 4
test eax, eax
je 0x536650
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
call fcn.00541d00
test edi, edi
jne 0x536702
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push dword [ebp - 0x10068]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.00536ab0
cmp dword [ebp - 0x10030], 8
lea eax, [ebp - 0x10044]
mov dword [esi + 0x18], 3
cmovae eax, dword [ebp - 0x10044]
cmp dword [ebp - 0x10014], 8
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x1c], 0
call eax
add esp, 4
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
test edi, edi
sete bl
mov eax, dword [ebp - 0x10030]
cmp eax, 8
jb 0x53677b
inc eax
lea ecx, [ebp - 0x10044]
push eax
push dword [ebp - 0x10044]
call fcn.00409510
mov ecx, dword [ebp - 0x10014]
xor eax, eax
mov dword [ebp - 0x10030], 7
mov dword [ebp - 0x10034], 0
mov word [ebp - 0x10044], ax
cmp ecx, 8
jb 0x5367b6
inc ecx
push ecx
push dword [ebp - 0x10028]
lea ecx, [ebp - 0x10028]
call fcn.00409510
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 - 0x10]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10