Function at 0x42c460
Capabilities:
Delete file
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x45c0
call fcn.0052f150
mov eax, dword [0x5a7634]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
mov dword [ebp - 0x45ac], ecx
cmp dword [ebp + 0x14], 3
je 0x42c49b
cmp dword [ebp + 0x14], 2
je 0x42c49b
cmp dword [ebp + 0x14], 1
je 0x42c49b
mov eax, 0x10000
jmp 0x42cb7d
cmp dword [ebp + 0x14], 3
jne 0x42c5ee
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42c55c
mov edx, dword [ebp - 0x45ac]
cmp dword [edx + 4], 0xffffffff
je 0x42c4d4
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042b3d0
add esp, 4
mov edx, dword [ebp - 0x45ac]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42c4fb
mov eax, 0x10000
jmp 0x42cb7d
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42c51c
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042a860
add esp, 4
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x42c53f
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042a8d0
add esp, 4
jmp 0x42c51c
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042adc0
add esp, 4
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042af80
add esp, 0xc
mov dword [ebp - 0x4154], eax
cmp dword [ebp - 0x4154], 0
jle 0x42c5b4
mov eax, 0x600
jmp 0x42cb7d
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042b3d0
add esp, 4
mov edx, dword [ebp - 0x45ac]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x4154], 0
jne 0x42c5e4
xor eax, eax
jmp 0x42cb7d
mov eax, 0x5000000
jmp 0x42cb7d
mov eax, dword [ebp - 0x45ac]
cmp dword [eax + 4], 0xffffffff
je 0x42c60b
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042b3d0
add esp, 4
mov eax, dword [ebp - 0x45ac]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x42c632
mov eax, 0x10000
jmp 0x42cb7d
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x42c653
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042a860
add esp, 4
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42c676
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042a8d0
add esp, 4
jmp 0x42c653
push 0x12c
push 0
lea edx, [ebp - 0x148]
push edx
call fcn.0052c7f0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x45ac]
call fcn.0042b6e0
mov edx, dword [ebp - 0x40]
and edx, 0x10
je 0x42c6da
cmp dword [ebp + 0x14], 1
jne 0x42c6b7
xor eax, eax
jmp 0x42cb7d
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x45ac]
add ecx, 0x138
push ecx
call fcn.0042bf40
add esp, 8
xor eax, eax
jmp 0x42cb7d
cmp dword [ebp + 0x14], 1
jne 0x42c6eb
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jmp 0x42c9ca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x415c], eax
mov ecx, dword [ebp - 0x415c]
mov dword [ebp - 0x4270], ecx
mov edx, dword [ebp - 0x4270]
movsx eax, byte [edx]
test eax, eax
je 0x42c749
mov ecx, dword [ebp - 0x4270]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x42c729
mov eax, dword [ebp - 0x4270]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x42c738
mov edx, dword [ebp - 0x4270]
add edx, 1
mov dword [ebp - 0x415c], edx
mov eax, dword [ebp - 0x4270]
add eax, 1
mov dword [ebp - 0x4270], eax
jmp 0x42c700
mov ecx, dword [ebp - 0x415c]
cmp ecx, dword [ebp + 0xc]
je 0x42c881
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x45b0], edx
lea eax, [ebp - 0x4488]
mov dword [ebp - 0x45b4], eax
mov ecx, dword [ebp - 0x45b4]
mov dword [ebp - 0x45b8], ecx
mov edx, dword [ebp - 0x45b0]
mov al, byte [edx]
mov byte [ebp - 0x45b9], al
mov ecx, dword [ebp - 0x45b4]
mov dl, byte [ebp - 0x45b9]
mov byte [ecx], dl
mov eax, dword [ebp - 0x45b0]
add eax, 1
mov dword [ebp - 0x45b0], eax
mov ecx, dword [ebp - 0x45b4]
add ecx, 1
mov dword [ebp - 0x45b4], ecx
cmp byte [ebp - 0x45b9], 0
jne 0x42c779
mov edx, dword [ebp - 0x415c]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x4489], 0
movsx eax, byte [ebp - 0x4488]
cmp eax, 0x2f
je 0x42c7fd
movsx ecx, byte [ebp - 0x4488]
cmp ecx, 0x5c
je 0x42c7fd
movsx edx, byte [ebp - 0x4487]
cmp edx, 0x3a
je 0x42c7fd
mov dword [ebp - 0x45c0], 0
jmp 0x42c807
mov dword [ebp - 0x45c0], 1
mov al, byte [ebp - 0x45c0]
mov byte [ebp - 0x4379], al
movzx ebx, byte [ebp - 0x4379]
push 0x55b220
lea ecx, [ebp - 0x4488]
push ecx
call fcn.0042d500
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x55b224
lea edx, [ebp - 0x4488]
push edx
call fcn.0042d500
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or ebx, esi
mov byte [ebp - 0x4379], bl
movzx eax, byte [ebp - 0x4379]
test eax, eax
jne 0x42c881
lea ecx, [ebp - 0x4488]
push ecx
mov edx, dword [ebp - 0x45ac]
add edx, 0x138
push edx
call fcn.0042bf40
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
je 0x42c8ab
mov dword [ebp - 0x448c], 0x80
mov ecx, dword [ebp - 0x448c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x4158], 0x104
lea eax, [ebp - 0x4268]
push eax
mov ecx, dword [ebp - 0x4158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42c92f
call fcn.0052f1ae
mov dword [ebp - 0x4490], eax
call fcn.0052f1ae
mov dword [ebp - 0x459c], eax
mov eax, dword [ebp - 0x459c]
push eax
mov ecx, dword [ebp - 0x4490]
push ecx
push 0x55b228
lea edx, [ebp - 0x4598]
push edx
call fcn.0052cc44
add esp, 0x10
lea eax, [ebp - 0x4598]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052f17b
add esp, 8
lea edx, [ebp - 0x4598]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x40]
and ecx, 1
je 0x42c94a
mov edx, dword [ebp - 0x40]
and edx, 0xfffffffe
mov dword [ebp - 0x40], edx
push 0x5c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042d4e0
add esp, 8
mov dword [ebp - 0x426c], eax
cmp dword [ebp - 0x426c], 0
je 0x42c9ac
push 0x104
push 0
lea ecx, [ebp - 0x4378]
push ecx
call fcn.0052c7f0
add esp, 0xc
mov edx, dword [ebp - 0x426c]
sub edx, dword [ebp + 0xc]
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4378]
push ecx
call fcn.0052cef0
add esp, 0xc
lea edx, [ebp - 0x4378]
push edx
call fcn.0042c140
add esp, 4
push 0
mov eax, dword [ebp - 0x40]
push eax
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42c9da
mov eax, 0x200
jmp 0x42cb7d
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042adc0
add esp, 4
mov byte [ebp - 0x14a], 0
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x4000
lea ecx, [ebp - 0x4150]
push ecx
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042af80
add esp, 0xc
mov dword [ebp - 0x45a0], eax
cmp dword [ebp - 0x45a0], 0
jge 0x42ca4d
mov byte [ebp - 0x14a], 1
jmp 0x42cae2
cmp dword [ebp - 0x45a0], 0
jne 0x42ca5b
jmp 0x42cae2
push 0
lea ecx, [ebp - 0x45a8]
push ecx
mov edx, dword [ebp - 0x45a0]
push edx
lea eax, [ebp - 0x4150]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x45a4], eax
cmp dword [ebp - 0x45a4], 0
jne 0x42ca94
mov byte [ebp - 0x14a], 1
jmp 0x42cae2
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x45a0]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, 0xc8
idiv ecx
test edx, edx
jne 0x42cadd
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0xc]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [ebp + 0x1c]
add esp, 0x10
jmp 0x42ca15
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [ebp + 0x1c]
add esp, 0x10
mov byte [ebp - 0x149], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x42cb27
movzx ecx, byte [ebp - 0x14a]
test ecx, ecx
jne 0x42cb27
mov byte [ebp - 0x149], 1
movzx edx, byte [ebp - 0x149]
test edx, edx
je 0x42cb48
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42cb58
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042b3d0
add esp, 4
movzx ecx, byte [ebp - 0x14a]
test ecx, ecx
je 0x42cb7b
mov eax, 0x400
jmp 0x42cb7d
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0052c40e
mov esp, ebp
pop ebp
ret 0x18