Function at 0x416c50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x58be1c]
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 eax, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
push 0x118
mov dword [ebp - 0x48c], eax
mov dword [eax], 0
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.0040e0b0
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x130]
call fcn.00410d30
cmp byte [ebp + 0x20], 0
je 0x416cf0
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x130]
push eax
call fcn.004153c0
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.004109b0
test al, al
je 0x416d12
mov eax, dword [ebx]
mov ecx, ebx
push str.openFileWin32:_file_path_is_empty.
call dword [eax + 0x14]
xor esi, esi
jmp 0x417015
lea ecx, [ebp - 0x130]
call fcn.0040fe30
cmp byte [ebp + 0x18], 0
mov edx, 2
mov cl, byte [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x47c], eax
mov eax, 0x80
cmove esi, eax
xor edi, edi
mov dword [ebp - 0x18], esi
test cl, cl
je 0x416d4d
mov eax, dword [ebp + 0x10]
movzx edi, al
add edi, 3
jmp 0x416d54
cmp byte [ebp + 0x10], 0
cmovne edi, edx
movzx eax, cl
shl eax, 0x1f
mov ecx, eax
or ecx, 0x40000000
cmp byte [ebp + 0x10], 0
push 0x118
cmove ecx, eax
mov eax, 3
mov dword [ebp - 0x484], ecx
xor ecx, ecx
cmp byte [ebp + 0x14], cl
mov dword [ebp - 0x14], ecx
cmovne eax, ecx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x478]
push 0
push eax
mov dword [ebp - 0x488], ecx
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x478]
call fcn.0040e0b0
cmp dword [ebp - 0x47c], 0
mov byte [ebp - 4], 1
jl 0x416de5
push 0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00415260
lea eax, [ebp - 0x478]
add esp, 0xc
mov dword [ebp - 0x488], eax
jmp 0x416deb
lea eax, [ebp - 0x130]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
push edi
push 0
push dword [ebp - 0x480]
mov ecx, eax
push dword [ebp - 0x484]
call fcn.004108b0
push eax
push 0x7d1
call fcn.004465e0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x416fec
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x490]
push ebx
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004148f0
add esp, 0x10
test al, al
je 0x416fa4
mov eax, dword [ebp - 0x47c]
test al, 1
je 0x416fa4
and eax, 0xfffffffe
push 0x118
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.0040e0b0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x248]
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x248]
call fcn.00410d30
push esi
lea eax, [ebp - 0x248]
push 1
push eax
call fcn.004153c0
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.004109b0
test al, al
jne 0x416f36
push 0x118
lea eax, [ebp - 0x360]
push esi
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x360]
call fcn.0040e0b0
push esi
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00415260
add esp, 0xc
lea ecx, [ebp - 0x360]
push dword [ebp - 0x47c]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x47c], eax
call fcn.0040e140
jmp 0x416f54
push dword [ebp - 0x47c]
lea ecx, [ebp - 0x248]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0040e140
cmp dword [ebp - 0x47c], 0
je 0x416fa4
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x14]
push ebx
push eax
push 0
push dword [ebp - 0x18]
push edi
push 0
push dword [ebp - 0x480]
push dword [ebp - 0x484]
call fcn.004108b0
push eax
push 0x7d1
call fcn.004465e0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x416fec
mov ecx, dword [ebp - 0x14]
cmp ecx, 5
je 0x416fcb
cmp ecx, 0x20
je 0x416fcb
cmp ecx, 0x21
je 0x416fcb
xor eax, eax
cmp ecx, 3
mov ecx, dword [ebp - 0x48c]
setne al
add eax, 2
mov dword [ecx], eax
jmp 0x416fd7
mov ecx, dword [ebp - 0x48c]
mov dword [ecx], 1
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
push str.localWindowsFilePath
call fcn.004384c0
jmp 0x41700a
cmp byte [ebp + 0x1c], 0
je 0x41700a
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x478]
call fcn.0040e140
lea ecx, [ebp - 0x130]
call fcn.0040e140
mov eax, esi
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.004a4dea
mov esp, ebp
pop ebp
ret