Function at 0x42c410
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.0052f100
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 0x42c44b
cmp dword [ebp + 0x14], 2
je 0x42c44b
cmp dword [ebp + 0x14], 1
je 0x42c44b
mov eax, 0x10000
jmp 0x42cb2d
cmp dword [ebp + 0x14], 3
jne 0x42c59e
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x42c50c
mov edx, dword [ebp - 0x45ac]
cmp dword [edx + 4], 0xffffffff
je 0x42c484
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042b380
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 0x42c4ab
mov eax, 0x10000
jmp 0x42cb2d
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x42c4cc
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042a810
add esp, 4
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x42c4ef
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042a880
add esp, 4
jmp 0x42c4cc
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042ad70
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.0042af30
add esp, 0xc
mov dword [ebp - 0x4154], eax
cmp dword [ebp - 0x4154], 0
jle 0x42c564
mov eax, 0x600
jmp 0x42cb2d
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042b380
add esp, 4
mov edx, dword [ebp - 0x45ac]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x4154], 0
jne 0x42c594
xor eax, eax
jmp 0x42cb2d
mov eax, 0x5000000
jmp 0x42cb2d
mov eax, dword [ebp - 0x45ac]
cmp dword [eax + 4], 0xffffffff
je 0x42c5bb
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042b380
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 0x42c5e2
mov eax, 0x10000
jmp 0x42cb2d
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x42c603
mov ecx, dword [ebp - 0x45ac]
mov edx, dword [ecx]
push edx
call fcn.0042a810
add esp, 4
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x42c626
mov eax, dword [ebp - 0x45ac]
mov ecx, dword [eax]
push ecx
call fcn.0042a880
add esp, 4
jmp 0x42c603
push 0x12c
push 0
lea edx, [ebp - 0x148]
push edx
call fcn.0052c7a0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x45ac]
call fcn.0042b690
mov edx, dword [ebp - 0x40]
and edx, 0x10
je 0x42c68a
cmp dword [ebp + 0x14], 1
jne 0x42c667
xor eax, eax
jmp 0x42cb2d
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x45ac]
add ecx, 0x138
push ecx
call fcn.0042bef0
add esp, 8
xor eax, eax
jmp 0x42cb2d
cmp dword [ebp + 0x14], 1
jne 0x42c69b
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jmp 0x42c97a
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 0x42c6f9
mov ecx, dword [ebp - 0x4270]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x42c6d9
mov eax, dword [ebp - 0x4270]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x42c6e8
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 0x42c6b0
mov ecx, dword [ebp - 0x415c]
cmp ecx, dword [ebp + 0xc]
je 0x42c831
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 0x42c729
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 0x42c7ad
movsx ecx, byte [ebp - 0x4488]
cmp ecx, 0x5c
je 0x42c7ad
movsx edx, byte [ebp - 0x4487]
cmp edx, 0x3a
je 0x42c7ad
mov dword [ebp - 0x45c0], 0
jmp 0x42c7b7
mov dword [ebp - 0x45c0], 1
mov al, byte [ebp - 0x45c0]
mov byte [ebp - 0x4379], al
movzx ebx, byte [ebp - 0x4379]
push 0x55b208
lea ecx, [ebp - 0x4488]
push ecx
call fcn.0042d4b0
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x55b20c
lea edx, [ebp - 0x4488]
push edx
call fcn.0042d4b0
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 0x42c831
lea ecx, [ebp - 0x4488]
push ecx
mov edx, dword [ebp - 0x45ac]
add edx, 0x138
push edx
call fcn.0042bef0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
and eax, 1
je 0x42c85b
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 0x42c8df
call fcn.0052f15e
mov dword [ebp - 0x4490], eax
call fcn.0052f15e
mov dword [ebp - 0x459c], eax
mov eax, dword [ebp - 0x459c]
push eax
mov ecx, dword [ebp - 0x4490]
push ecx
push 0x55b210
lea edx, [ebp - 0x4598]
push edx
call fcn.0052cbf4
add esp, 0x10
lea eax, [ebp - 0x4598]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052f12b
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 0x42c8fa
mov edx, dword [ebp - 0x40]
and edx, 0xfffffffe
mov dword [ebp - 0x40], edx
push 0x5c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042d490
add esp, 8
mov dword [ebp - 0x426c], eax
cmp dword [ebp - 0x426c], 0
je 0x42c95c
push 0x104
push 0
lea ecx, [ebp - 0x4378]
push ecx
call fcn.0052c7a0
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.0052cea0
add esp, 0xc
lea edx, [ebp - 0x4378]
push edx
call fcn.0042c0f0
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 0x42c98a
mov eax, 0x200
jmp 0x42cb2d
mov edx, dword [ebp - 0x45ac]
mov eax, dword [edx]
push eax
call fcn.0042ad70
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.0042af30
add esp, 0xc
mov dword [ebp - 0x45a0], eax
cmp dword [ebp - 0x45a0], 0
jge 0x42c9fd
mov byte [ebp - 0x14a], 1
jmp 0x42ca92
cmp dword [ebp - 0x45a0], 0
jne 0x42ca0b
jmp 0x42ca92
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 0x42ca44
mov byte [ebp - 0x14a], 1
jmp 0x42ca92
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 0x42ca8d
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 0x42c9c5
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 0x42cad7
movzx ecx, byte [ebp - 0x14a]
test ecx, ecx
jne 0x42cad7
mov byte [ebp - 0x149], 1
movzx edx, byte [ebp - 0x149]
test edx, edx
je 0x42caf8
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 0x42cb08
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.0042b380
add esp, 4
movzx ecx, byte [ebp - 0x14a]
test ecx, ecx
je 0x42cb2b
mov eax, 0x400
jmp 0x42cb2d
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0052c3ba
mov esp, ebp
pop ebp
ret 0x18