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

Disassembly:
mov eax, 0x424c
call fcn.00443390
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x4244], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4258]
push esi
or esi, 0xffffffff
cmp dword [ebp + 4], esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
je 0x4216b9
mov edi, dword [ebp]
call fcn.00420fb0
mov edi, dword [esp + 0x4264]
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp edi, dword [esi + 4]
jl 0x4216d5
mov eax, 0x10000
jmp 0x421916
cmp edi, dword [esi + 0x10]
jge 0x4216df
call fcn.004209d0
mov eax, dword [ebp]
cmp dword [eax + 0x10], edi
jge 0x42173a
mov esi, dword [ebp]
test esi, esi
je 0x421732
cmp dword [esi + 0x18], 0
je 0x421732
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x421732
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.00420570
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], edi
jl 0x4216e7
push edi
lea edx, [esp + 0x1c]
mov ecx, ebp
call fcn.00421110
test byte [esp + 0x120], 0x10
je 0x42176b
lea edx, [esp + 0x1c]
push edx
add ebp, 0x138
push ebp
call fcn.00421580
add esp, 8
xor eax, eax
jmp 0x421916
mov al, byte [ebx]
test al, al
mov esi, ebx
mov ecx, ebx
je 0x421830
lea esp, [esp]
cmp al, 0x2f
je 0x421788
cmp al, 0x5c
jne 0x42178b
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x421780
cmp esi, ebx
je 0x421830
lea edx, [esp + 0x148]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4217a8
sub esi, ebx
mov byte [esp + esi + 0x147], cl
mov al, byte [esp + 0x148]
cmp al, 0x2f
je 0x4217da
cmp al, 0x5c
je 0x4217da
cmp byte [esp + 0x149], 0x3a
je 0x4217da
xor bl, bl
jmp 0x4217dc
mov bl, 1
lea eax, [esp + 0x148]
push 0x466388
push eax
call fcn.00441c22
lea ecx, [esp + 0x150]
push 0x46638c
push ecx
mov esi, eax
call fcn.00441c22
add esp, 0x10
test eax, eax
setne dl
test esi, esi
setne al
or dl, al
or dl, bl
jne 0x42182c
lea ecx, [esp + 0x148]
push ecx
lea edx, [ebp + 0x138]
push edx
call fcn.00421580
add esp, 8
mov ebx, dword [esp + 0x14]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x120]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421869
mov eax, 0x200
jmp 0x421916
mov eax, dword [ebp]
call fcn.00420d00
mov eax, dword [ebp]
lea ecx, [esp + 0x250]
push ecx
mov ecx, 0x4000
xor bl, bl
call fcn.00420e10
add esp, 4
test eax, eax
jl 0x4218ca
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4218cc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x25c]
push eax
push esi
call edi
test eax, eax
je 0x4218ca
mov eax, dword [ebp]
lea ecx, [esp + 0x250]
push ecx
mov ecx, 0x4000
call fcn.00420e10
add esp, 4
test eax, eax
jge 0x421895
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4218fb
test bl, bl
jne 0x4218fb
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp]
call fcn.00420fb0
neg bl
sbb ebx, ebx
and ebx, 0x400
mov eax, ebx
mov ecx, dword [esp + 0x4254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404d0
add esp, 0x424c
ret 8