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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0854
mov eax, dword fs:[0]
push eax
mov eax, 0x102ac
call fcn.00577cb0
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 0x536942
test edi, edi
jne 0x536858
lea edi, [esi + 0x34]
push edi
call fcn.005371d0
test al, al
jne 0x536949
cmp dword [esi + 0x248], 0
je 0x536896
lea ecx, [ebp - 0x1029c]
call fcn.005190b0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x53688b
mov edx, dword [edx]
mov eax, dword [esi + 0x248]
jmp 0x53691b
cmp dword [0x656c44], 0
je 0x5368f1
lea ecx, [ebp - 0x1029c]
call fcn.005190b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x5368b9
mov eax, dword [eax]
push eax
push edi
push str.Failed_to_create_destinationFolder__s.___s
push 0x5f8398
push 0x5f8398
push str.UnzipHandler
push str.OOBEUtils
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x1029c]
call fcn.004087d0
xor al, al
jmp 0x536f88
cmp dword [0x656c48], 0
je 0x536942
lea ecx, [ebp - 0x1029c]
call fcn.005190b0
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x536916
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 0x536f88
lea eax, [ebp - 0x10280]
mov ecx, esi
push eax
call fcn.00537040
push edi
lea ecx, [ebp - 0x10028]
call fcn.00408810
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10018]
test ecx, ecx
je 0x5369a0
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x5369a0
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.0051cf70
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10288]
cmp eax, 0x10
jb 0x5369ed
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.005aae36
add esp, 4
mov ebx, eax
push 0x5c
push ebx
call fcn.0059050a
add esp, 8
mov byte [ebp - 0x10281], 0
test eax, eax
je 0x536a6c
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.005371d0
mov byte [ebp - 0x10281], al
push ebx
call fcn.00599281
add esp, 4
cmp byte [ebp - 0x10281], 0
jne 0x536b6a
cmp dword [esi + 0x248], 0
je 0x536ab0
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov edi, eax
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x536aa4
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x536b4b
cmp dword [0x656c44], 0
je 0x536b1e
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov ecx, eax
mov byte [ebp - 4], 8
cmp dword [ecx + 0x14], 8
jb 0x536ad2
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 str.OOBEUtils
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.004087d0
xor bl, bl
jmp 0x536f2d
cmp dword [0x656c48], 0
je 0x536d54
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 8
jb 0x536b44
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 0x536d34
mov cl, byte [ebp - 0x1004c]
test cl, cl
je 0x536b9f
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
test edi, edi
je 0x536b9f
cmp edi, 0xffffffff
je 0x536b9f
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 0x536c11
cmp eax, 2
jmp 0x536f2a
cmp byte [ebp - 0x1004c], 0
je 0x536c21
mov bl, 1
jmp 0x536f2d
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 0x536d5b
cmp dword [esi + 0x248], 0
je 0x536c83
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x536c77
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x536d1a
cmp dword [0x656c44], 0
je 0x536cf1
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov ecx, eax
mov byte [ebp - 4], 0xb
cmp dword [ecx + 0x14], 8
jb 0x536ca5
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 str.OOBEUtils
push 0x32
call dword [0x656c44]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.004087d0
xor bl, bl
jmp 0x536f2d
cmp dword [0x656c48], 0
je 0x536d54
lea ecx, [ebp - 0x102b4]
call fcn.005190b0
mov esi, eax
mov byte [ebp - 4], 0xc
cmp dword [esi + 0x14], 8
jb 0x536d13
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 0x536f2d
push dword [esi + 0x240]
mov ecx, dword [esi + 8]
sub esp, 8
call fcn.00541f10
add esp, 0xc
test eax, eax
je 0x536e15
mov edx, dword [esi + 0x248]
test edx, edx
jne 0x536dd8
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x536dce
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 str.OOBEUtils
push 0x32
call ecx
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x536f2d
mov edx, dword [0x656c48]
test edx, edx
je 0x536e07
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 0x536f2d
mov dword [esi + 0x18], 2
nop dword [eax]
cmp byte [ebp + 0x14], 0
mov ecx, dword [esi + 8]
jne 0x536e36
push 0x10000
lea edx, [ebp - 0x10010]
jmp 0x536e41
mov edx, dword [esi + 0x244]
push 0x40000
call fcn.00542200
mov edi, eax
add esp, 4
test edi, edi
jle 0x536e9f
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x1002c]
push 0
push eax
mov dword [ebp - 0x1002c], edi
push edi
jne 0x536e6e
lea eax, [ebp - 0x10010]
push eax
jmp 0x536e74
push dword [esi + 0x244]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x536e9c
mov eax, dword [ebp - 0x1002c]
cmp eax, edi
jne 0x536e9c
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 0x536e20
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
call fcn.005424c0
test edi, edi
jne 0x536ed2
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push dword [ebp - 0x10068]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.00537280
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 0x536f4b
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 0x536f86
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.005765b2
mov esp, ebp
pop ebp
ret 0x10