Function at 0x4018d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412c04
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x41c268]
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 edi, ecx
mov dword [ebp - 0x78], edi
cmp dword [edi + 4], 0
jne 0x40203c
lea eax, [ebp - 0x88]
push eax
mov dword [edi + 4], 1
mov dword [ebp - 0x88], 0
call fcn.00402590
mov eax, dword [ebp - 0x88]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], str.text_plain
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
call fcn.00402070
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.004027e0
or ebx, 0xffffffff
test eax, eax
je 0x401c55
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x80]
push str.http:__
push eax
mov dword [ebp - 0x6c], 0
call fcn.00401490
push 0x4146a0
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 1
call fcn.004013b0
add esp, 0x18
mov edx, dword [ebp - 0x80]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4019c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00408c30
mov eax, dword [ebp - 0x6c]
add esp, 0xc
lea ecx, [ebp - 0x64]
push ecx
push 0
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
push dword [eax - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x401c2e
push 0x41c230
push dword [ebp - 0x50]
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x54]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x7c], 0
call section..text
push 0x41c230
push dword [ebp - 0x34]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x38]
mov byte [ebp - 4], 4
mov dword [ebp - 0x70], 0
call section..text
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004015f0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
xor eax, eax
cmp dword [ebp - 0x58], 2
mov dword [ebp - 0x18], str.application_octet_stream
sete al
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x414694
call fcn.00401080
mov eax, dword [ebp - 0x70]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x84], esp
mov esi, esp
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x8c], eax
call fcn.00402070
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x74], eax
call fcn.00402070
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.004035b0
add esp, 0x28
test eax, eax
jne 0x401bf1
cmp dword [ebp - 0x1c], eax
jbe 0x401bf1
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00402070
add eax, 0x10
add esp, 4
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00403480
test eax, eax
je 0x401bd4
push str.setup
lea ecx, [ebp - 0x68]
call fcn.00401570
test eax, eax
je 0x401bd4
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x68]
push dword [ebp - 0x24]
lea eax, [esi - 0x10]
push 1
push ecx
mov edi, esp
push eax
call fcn.00402070
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004034f0
mov edi, dword [ebp - 0x78]
add esp, 0x10
test eax, eax
jne 0x401bd7
mov ecx, edi
call fcn.00403420
mov eax, dword [0x41c230]
mov ecx, 0x41c230
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x24]
push str.__s___is_upg__np_1
push eax
mov byte [ebp - 4], 9
call fcn.004016c0
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x401bb2
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
call fcn.004024d0
mov eax, dword [ebp - 0x24]
push 0x1d4c0
push eax
call fcn.00402420
add esp, 8
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
call fcn.004033d0
lea ecx, [ebp - 0x24]
call fcn.00401370
jmp 0x401bd7
mov esi, dword [ebp - 0x68]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401be9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x68]
call fcn.00401370
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.00403140
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x41c230]
mov ecx, 0x41c230
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00402c70
push eax
mov ecx, edi
call fcn.00402a10
push eax
mov ecx, edi
call fcn.00402ba0
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x7c]
push dword [edi + 0x14]
push str._gmi_v_scid_sd_db_du_d
push eax
call fcn.004016c0
add esp, 0x1c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x414694
call fcn.00401080
mov eax, dword [ebp - 0x7c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x74], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x8c], eax
call fcn.00402070
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x20]
sub eax, 0x10
mov esi, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00402070
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0xa
call fcn.004035b0
add esp, 0x28
test eax, eax
jne 0x401ff1
cmp dword [ebp - 0x20], eax
jbe 0x401ff1
mov eax, dword [0x41c230]
mov ecx, 0x41c230
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
push ebx
push 8
push 0xfde9
call edi
mov esi, eax
push esi
lea ecx, [ebp - 0x80]
call fcn.00402550
push esi
push eax
push dword [ebp - 0x20]
push ebx
push 8
push 0xfde9
call edi
test eax, eax
js 0x402058
mov esi, dword [ebp - 0x80]
cmp eax, dword [esi - 8]
jg 0x402058
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x3c
mov word [esi + eax*2], cx
push ecx
lea eax, [ebp - 0x64]
push eax
call fcn.00408c30
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
push dword [esi - 0xc]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x401fce
push 0x41c230
push dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x54]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call section..text
push 0x41c230
push dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x38]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x6c], 0
call section..text
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.004015f0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
xor eax, eax
cmp dword [ebp - 0x58], 2
mov dword [ebp - 0x18], str.application_octet_stream
sete al
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x414694
call fcn.00401080
mov ebx, dword [ebp - 0x6c]
push ecx
add ebx, 0xfffffff0
mov dword [ebp - 0x68], esp
mov edi, esp
push ebx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x70], ebx
call fcn.00402070
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov edi, esp
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x74], eax
call fcn.00402070
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0xf
call fcn.004035b0
add esp, 0x28
test eax, eax
jne 0x401f8f
cmp dword [ebp - 0x1c], eax
jbe 0x401f8f
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x10]
sub eax, 0x10
push eax
call fcn.00402070
add eax, 0x10
add esp, 4
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.00403480
test eax, eax
je 0x401f87
push str.updater
lea ecx, [ebp - 0x68]
call fcn.00401570
test eax, eax
je 0x401f87
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x24]
lea eax, [edi - 0x10]
push 1
push ecx
mov ebx, esp
push eax
call fcn.00402070
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004034f0
add esp, 0x10
test eax, eax
jne 0x401f84
mov eax, dword [0x41c230]
mov ecx, 0x41c230
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 0x13
push dword [eax + 0x10]
lea eax, [ebp - 0x24]
push edi
push str.__s___Update__s
push eax
call fcn.004016c0
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x401f67
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
call fcn.004024d0
mov eax, dword [ebp - 0x24]
push 0
push eax
call fcn.00402420
add esp, 8
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
call fcn.004033d0
lea ecx, [ebp - 0x24]
call fcn.00401370
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
call fcn.00401370
lea eax, [ebx + 0xc]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xe
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401faf
mov edx, dword [ebp - 0x70]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401fd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x401fd1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401fee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x8c]
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402018
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40203c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004087da
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004018b0
int3