Function at 0x43d590
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5911
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x68cc00]
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 edi, dword [ebp + 0x28]
push 0x118
mov dword [ebp - 0x480], eax
mov dword [eax], 0
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.00403870
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.00404510
push 0x5c
push 0x2f
lea ecx, [ebp - 0x130]
call fcn.004071a0
cmp byte [ebp + 0x20], 0
je 0x43d630
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x130]
push eax
call fcn.0043bf70
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.00406e40
test al, al
je 0x43d652
mov eax, dword [edi]
mov ecx, edi
push str.openFileWin32:_file_path_is_empty.
call dword [eax + 0x14]
xor esi, esi
jmp 0x43d973
lea ecx, [ebp - 0x130]
call fcn.00406120
cmp byte [ebp + 0x18], 0
mov edx, 2
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x47c], eax
mov eax, 0x80
cmove esi, eax
mov al, byte [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], esi
test al, al
je 0x43d68f
test cl, cl
setne bl
add ebx, 3
jmp 0x43d694
test cl, cl
cmovne ebx, edx
movzx eax, al
shl eax, 0x1f
mov edx, eax
or edx, 0x40000000
test cl, cl
push 0x118
cmove edx, eax
mov eax, 3
xor ecx, ecx
mov dword [ebp - 0x488], edx
cmp byte [ebp + 0x14], cl
mov dword [ebp - 0x14], ecx
cmovne eax, ecx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x478]
push 0
push eax
mov dword [ebp - 0x48c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x478]
call fcn.00403870
cmp dword [ebp - 0x47c], 0
mov byte [ebp - 4], 1
jl 0x43d723
push 0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0043be20
lea eax, [ebp - 0x478]
add esp, 0xc
mov dword [ebp - 0x48c], eax
jmp 0x43d729
lea eax, [ebp - 0x130]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
push ebx
push 0
push dword [ebp - 0x484]
mov ecx, eax
push dword [ebp - 0x488]
call fcn.00406cc0
push eax
push 0x7d1
call fcn.004c45a0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x43d94a
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x490]
push edi
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0043b790
add esp, 0x10
test al, al
je 0x43d8e2
mov eax, dword [ebp - 0x47c]
test al, 1
je 0x43d8e2
and eax, 0xfffffffe
push 0x118
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x248]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.00403870
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x248]
call fcn.00404510
push 0x5c
push 0x2f
lea ecx, [ebp - 0x248]
call fcn.004071a0
push esi
lea eax, [ebp - 0x248]
push 1
push eax
call fcn.0043bf70
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.00406e40
test al, al
jne 0x43d874
push 0x118
lea eax, [ebp - 0x360]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x360]
call fcn.00403870
push esi
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0043be20
add esp, 0xc
lea ecx, [ebp - 0x360]
push dword [ebp - 0x47c]
call fcn.00406cc0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x47c], eax
call fcn.00403900
jmp 0x43d892
push dword [ebp - 0x47c]
lea ecx, [ebp - 0x248]
call fcn.00406cc0
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.00403900
cmp dword [ebp - 0x47c], 0
je 0x43d8e2
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x14]
push edi
push eax
push 0
push dword [ebp - 0x18]
push ebx
push 0
push dword [ebp - 0x484]
push dword [ebp - 0x488]
call fcn.00406cc0
push eax
push 0x7d1
call fcn.004c45a0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x43d94a
push dword [ebp - 0x14]
mov ecx, edi
push str.windowsError
call fcn.00448c10
mov eax, dword [ebp - 0x14]
cmp eax, 5
je 0x43d929
cmp eax, 0x20
je 0x43d929
cmp eax, 0x21
je 0x43d929
cmp eax, 3
je 0x43d91b
cmp eax, 2
je 0x43d91b
mov eax, dword [ebp - 0x480]
mov dword [eax], 3
jmp 0x43d935
mov eax, dword [ebp - 0x480]
mov dword [eax], 2
jmp 0x43d935
mov eax, dword [ebp - 0x480]
mov dword [eax], 1
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
push str.localWindowsFilePath
call fcn.00448c80
jmp 0x43d968
cmp byte [ebp + 0x1c], 0
je 0x43d968
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.00403900
lea ecx, [ebp - 0x130]
call fcn.00403900
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.005af5a8
mov esp, ebp
pop ebp
ret