Function at 0x401a60
Capabilities:
Delete file

Disassembly:
sub esp, 0x63c
push ebx
push ebp
push esi
push edi
mov edi, 0x4087b8
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor ebp, ebp
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x24], ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
cmp ecx, 5
mov dword [esp + 0x2c], ebx
jle 0x401ee2
sub ecx, 3
mov edi, 0x4080e4
lea edx, [esp + ecx + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4087b4]
lea edx, [esp + 0x44]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jle 0x401ee2
mov byte [esp + ecx + 0x40], al
push 0x4080a0
lea ecx, [esp + 0x48]
push 0x4080a0
push ecx
call fcn.00401860
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x401ee2
mov esi, 1
lea eax, [esp + 0x44]
lea edx, [esp + 0x30]
sub esi, eax
mov al, byte [esp + ecx + 0x43]
dec ecx
cmp al, 0x2e
je 0x401b81
cmp al, 0x5f
je 0x401b81
cmp al, 0x2d
je 0x401b81
cmp ecx, ebx
je 0x401ba7
jmp 0x401b9d
lea eax, [esi + ecx]
inc ebp
add edx, 4
cmp ebp, 5
lea eax, [esp + eax + 0x44]
mov byte [esp + ecx + 0x44], 0
mov dword [edx - 4], eax
je 0x401cfc
cmp ecx, ebx
jle 0x401cf3
jmp 0x401b6a
mov dword [esp + ebp*4 + 0x30], ebx
inc ebp
cmp ebp, 5
je 0x401cfc
cmp ebp, 4
je 0x401bc3
cmp ebp, 5
jne 0x401ee2
mov edx, dword [esp + ebp*4 + 0x2c]
push 0x4080a0
push 0x4080a0
lea ebx, [esp + edx + 0x4c]
push ebx
call fcn.00401860
mov eax, dword [esp + ebp*4 + 0x34]
push 0x4080a0
push 0x4080a0
lea eax, [esp + eax + 0x58]
push eax
mov dword [esp + 0x28], eax
call fcn.00401860
mov ecx, dword [esp + ebp*4 + 0x3c]
push 0x4080a0
push 0x4080a0
lea eax, [esp + ecx + 0x64]
push eax
mov dword [esp + 0x38], eax
call fcn.00401860
mov edx, dword [esp + ebp*4 + 0x44]
push 0x4080a0
push 0x4080a0
lea eax, [esp + edx + 0x70]
push eax
mov dword [esp + 0x58], eax
call fcn.00401860
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
not ecx
dec ecx
je 0x401d40
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d40
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d40
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d40
push ebx
call fcn.00401ef0
add esp, 4
test eax, eax
je 0x401d40
mov eax, dword [esp + 0x10]
push eax
call fcn.00401ef0
add esp, 4
test eax, eax
je 0x401d40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401ef0
add esp, 4
test eax, eax
je 0x401d40
mov edi, dword [esp + 0x28]
push edi
call fcn.00401ef0
add esp, 4
test eax, eax
je 0x401d40
push ebx
call esi
mov edx, dword [esp + 0x14]
mov ebx, eax
push edx
call esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push eax
call esi
push edi
mov dword [esp + 0x34], eax
call esi
add esp, 0x10
mov dword [esp + 0x1c], eax
jmp 0x401d44
cmp ebp, 5
jne 0x401bb5
mov ecx, dword [esp + 0x40]
push 0x4080a0
push 0x4080a0
lea esi, [esp + ecx + 0x4c]
push esi
call fcn.00401860
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d36
push esi
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x401bc3
mov ebp, 4
jmp 0x401bc3
mov ebx, dword [esp + 0x20]
cmp ebp, 5
jne 0x401d87
mov ecx, dword [esp + 0x30]
push 0x4080a0
push 0x4080a0
lea ebp, [esp + ecx + 0x4c]
push ebp
call fcn.00401860
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d87
push ebp
call fcn.00401ef0
add esp, 4
test eax, eax
je 0x401d87
push ebp
call esi
add esp, 4
jmp 0x401d8b
mov eax, dword [esp + 0x2c]
test ebx, ebx
mov byte [esp + 0x44], 0
jle 0x401e01
cmp ebx, 0x100
jge 0x401e01
mov edx, dword [esp + 0x18]
test edx, edx
jl 0x401e01
cmp edx, 0x100
jge 0x401e01
mov ecx, dword [esp + 0x24]
test ecx, ecx
jl 0x401e01
cmp ecx, 0x100
jge 0x401e01
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x401e01
cmp esi, 0x100
jge 0x401e01
test eax, eax
jle 0x401dea
push eax
push esi
push ecx
push edx
push ebx
lea edx, [esp + 0x58]
push str._d._d._d._d_:__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x401e01
push esi
push ecx
push edx
push ebx
lea eax, [esp + 0x54]
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401ee2
or ecx, 0xffffffff
mov edi, str.__TEXT
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x24c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4080b8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x24c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.1__LastServer_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x24c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
call fcn.00401f20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x63c
ret