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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7cc4
mov eax, dword fs:[0]
push eax
mov eax, 0x102ac
call fcn.0059b350
mov eax, dword [0x67d070]
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 0x4cee72
test edi, edi
jne 0x4ced88
lea edi, [esi + 0x34]
push edi
call fcn.004cf770
test al, al
jne 0x4cee79
cmp dword [esi + 0x248], 0
je 0x4cedc6
lea ecx, [ebp - 0x1029c]
call fcn.0049fe60
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x4cedbb
mov edx, dword [edx]
mov eax, dword [esi + 0x248]
jmp 0x4cee4b
cmp dword [0x689958], 0
je 0x4cee21
lea ecx, [ebp - 0x1029c]
call fcn.0049fe60
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4cede9
mov eax, dword [eax]
push eax
push edi
push str.Failed_to_create_destinationFolder__s.___s
push 0x622628
push 0x622628
push str.UnzipHandler
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x20
lea ecx, [ebp - 0x1029c]
call fcn.00406e20
xor al, al
jmp 0x4cf4b8
cmp dword [0x68995c], 0
je 0x4cee72
lea ecx, [ebp - 0x1029c]
call fcn.0049fe60
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x4cee46
mov edx, dword [edx]
mov eax, dword [0x68995c]
mov ecx, dword [eax]
push edx
push edi
push str.Failed_to_create_destinationFolder__s.___s
push str.UnzipHandler
push 0x622628
push 0x32
push eax
call dword [ecx + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x1029c]
call fcn.00406e20
xor al, al
jmp 0x4cf4b8
lea eax, [ebp - 0x10280]
mov ecx, esi
push eax
call fcn.004cf5e0
push edi
lea ecx, [ebp - 0x10028]
call fcn.00406e60
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10018]
test ecx, ecx
je 0x4ceed0
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4ceed0
push 0x62325c
lea ecx, [ebp - 0x10028]
call fcn.004096d0
lea eax, [ebp - 0x10280]
push eax
lea ecx, [ebp - 0x1029c]
call fcn.00406f00
push ecx
lea edx, [ebp - 0x1029c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10044]
call fcn.004a7200
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10288]
cmp eax, 0x10
jb 0x4cef1d
inc eax
lea ecx, [ebp - 0x1029c]
push eax
push dword [ebp - 0x1029c]
call fcn.00407440
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.00408dc0
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
mov edi, dword [ebp - 0x10054]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.005cf1ec
add esp, 4
mov ebx, eax
push 0x5c
push ebx
call fcn.005b3c62
add esp, 8
mov byte [ebp - 0x10281], 0
test eax, eax
je 0x4cef9c
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004cf770
mov byte [ebp - 0x10281], al
push ebx
call fcn.005b3b4d
add esp, 4
cmp byte [ebp - 0x10281], 0
jne 0x4cf09a
cmp dword [esi + 0x248], 0
je 0x4cefe0
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov edi, eax
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x4cefd4
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x4cf07b
cmp dword [0x689958], 0
je 0x4cf04e
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov ecx, eax
mov byte [ebp - 4], 8
cmp dword [ecx + 0x14], 8
jb 0x4cf002
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 0x622628
push 0x622628
push str.UnzipHandler
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.00406e20
xor bl, bl
jmp 0x4cf45d
cmp dword [0x68995c], 0
je 0x4cf284
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 8
jb 0x4cf074
mov esi, dword [esi]
mov ecx, dword [0x68995c]
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 0x4cf264
mov cl, byte [ebp - 0x1004c]
test cl, cl
je 0x4cf0cf
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
test edi, edi
je 0x4cf0cf
cmp edi, 0xffffffff
je 0x4cf0cf
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 0x4cf141
cmp eax, 2
jmp 0x4cf45a
cmp byte [ebp - 0x1004c], 0
je 0x4cf151
mov bl, 1
jmp 0x4cf45d
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 0x4cf28b
cmp dword [esi + 0x248], 0
je 0x4cf1b3
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov edi, eax
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x4cf1a7
mov edi, dword [edi]
mov ecx, dword [esi + 0x248]
push edi
jmp 0x4cf24a
cmp dword [0x689958], 0
je 0x4cf221
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov ecx, eax
mov byte [ebp - 4], 0xb
cmp dword [ecx + 0x14], 8
jb 0x4cf1d5
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 0x622628
push 0x622628
push str.UnzipHandler
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x20
lea ecx, [ebp - 0x102b4]
call fcn.00406e20
xor bl, bl
jmp 0x4cf45d
cmp dword [0x68995c], 0
je 0x4cf284
lea ecx, [ebp - 0x102b4]
call fcn.0049fe60
mov esi, eax
mov byte [ebp - 4], 0xc
cmp dword [esi + 0x14], 8
jb 0x4cf243
mov esi, dword [esi]
mov ecx, dword [0x68995c]
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 0x622628
push 0x32
push ecx
call dword [edx + 0x34]
add esp, 0x1c
lea ecx, [ebp - 0x102b4]
call fcn.00406e20
xor bl, bl
jmp 0x4cf45d
push dword [esi + 0x240]
mov ecx, dword [esi + 8]
sub esp, 8
call fcn.004dcfe0
add esp, 0xc
test eax, eax
je 0x4cf345
mov edx, dword [esi + 0x248]
test edx, edx
jne 0x4cf308
mov ecx, dword [0x689958]
test ecx, ecx
je 0x4cf2fe
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
push str.Failed_to_unzOpenCurrentFilePassword:__s
push 0x622628
push 0x622628
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 0x4cf45d
mov edx, dword [0x68995c]
test edx, edx
je 0x4cf337
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 0x622628
push 0x32
push edx
call dword [ecx + 0x34]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor bl, bl
jmp 0x4cf45d
mov dword [esi + 0x18], 2
nop dword [eax]
cmp byte [ebp + 0x14], 0
mov ecx, dword [esi + 8]
jne 0x4cf366
push 0x10000
lea edx, [ebp - 0x10010]
jmp 0x4cf371
mov edx, dword [esi + 0x244]
push 0x40000
call fcn.004dd2d0
mov edi, eax
add esp, 4
test edi, edi
jle 0x4cf3cf
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x1002c]
push 0
push eax
mov dword [ebp - 0x1002c], edi
push edi
jne 0x4cf39e
lea eax, [ebp - 0x10010]
push eax
jmp 0x4cf3a4
push dword [esi + 0x244]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4cf3cc
mov eax, dword [ebp - 0x1002c]
cmp eax, edi
jne 0x4cf3cc
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 0x4cf350
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi + 8]
call fcn.004dd590
test edi, edi
jne 0x4cf402
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push dword [ebp - 0x10068]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.004cf820
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 0x4cf47b
inc eax
lea ecx, [ebp - 0x10044]
push eax
push dword [ebp - 0x10044]
call fcn.00407b40
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 0x4cf4b6
inc ecx
push ecx
push dword [ebp - 0x10028]
lea ecx, [ebp - 0x10028]
call fcn.00407b40
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.00599c70
mov esp, ebp
pop ebp
ret 0x10