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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x1019646c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x450], edi
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x42c], 0
push eax
mov dword [ebp - 0x434], esi
call fcn.1004cf30
add esp, 4
mov ecx, dword [edi]
or edi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ecx + 0x50]
cmp dword [eax - 0xc], esi
je 0x1003ff57
push ecx
mov dword [ebp - 0x428], esi
mov esi, esp
mov dword [ebp - 0x448], esi
mov eax, dword [ecx + 0x50]
sub eax, 0x10
push eax
call fcn.10019550
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.1004ce70
add esp, 8
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x434]
mov byte [ebp - 4], 2
mov dword [ebp - 0x444], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1003fcc7
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1003fcdf
call fcn.10017640
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1004069a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x434]
push 1
push 0x101551b4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.100195c0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10018b60
add esp, 0x20
mov dword [ebp - 0x42c], 0
mov edx, dword [ebp - 0x444]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fd5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov byte [ebp - 0x43d], 0
movlpd qword [ebp - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 5
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x1004067e
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 7
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 4
push 0
push str.halopet
push 0
push 0
push str.start_download
call fcn.1009b2b0
push dword [ebp - 0x41c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003ffb3
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100406a4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x1003fe6d
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100144a0
jmp 0x1003fe98
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fe76
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.1001c180
mov eax, dword [ebp - 0x450]
mov esi, dword [ebp - 0x420]
push esi
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003ff98
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x41c]
push eax
call fcn.10018af0
push 0
push str.halopet
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x444], 1
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
mov eax, dword [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1003ff79
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f5f8d
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ffb3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100406ae
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x450]
xorps xmm0, xmm0
push 0x20
mov byte [ebp - 4], 0xc
movlpd qword [ebp - 0x418], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x420], eax
call fcn.100f5bec
add esp, 4
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1004002f
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x10040031
xor eax, eax
push dword [ebp - 0x448]
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
call fcn.10018230
push dword [ebp - 0x420]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
push 0x493e0
push eax
mov eax, dword [ebp - 0x448]
xor esi, esi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x444], esi
push dword [eax + 0x50]
call fcn.10019720
test eax, eax
lea ecx, [ebp - 0x454]
mov eax, dword [ebp - 0x418]
je 0x100400ad
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x444], esi
jmp 0x100400b0
add eax, 0x1c
push eax
call fcn.10018a30
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x100400e5
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x100400e5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x100400e5
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100404e2
xorps xmm0, xmm0
mov byte [ebp - 0x43d], 0
movlpd qword [ebp - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0xf
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x100404c6
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x11
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0xc
push 0
push str.halopet
push 0
push 0
push str.download_suc
call fcn.1009b2b0
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x41c]
mov edx, dword [edx]
lea ecx, [eax - 0x10]
sub edx, 0x10
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x420], edx
cmp ecx, edx
je 0x10040214
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x41c]
jl 0x100401ff
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x100401ff
push dword [ebp - 0x448]
call fcn.10019550
mov dword [ebp - 0x448], eax
add esp, 4
mov eax, dword [ebp - 0x42c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100401ec
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1004020e
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x44c]
push eax
call fcn.1001c180
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004043e
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100406b8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 0x16
test eax, 0xffff0000
jne 0x10040291
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100144a0
jmp 0x100402c2
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100402a0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.1001c180
mov eax, dword [ebp - 0x450]
mov esi, dword [ebp - 0x420]
push esi
mov eax, dword [eax]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 0x43d], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x418], xmm0
test eax, eax
jne 0x1004039a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x18
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x10040376
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1a
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.halopet
push 0
push 0
push str.md5_suc
call fcn.1009b2b0
mov eax, dword [ebp - 0x444]
jmp 0x10040417
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1b
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x19
test al, al
je 0x100406d8
jmp 0x100406c2
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1d
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x43c]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x100404aa
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1f
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.halopet
push 0
push 0
push str.md5_fail
call fcn.1009b2b0
xor eax, eax
mov dword [ebp - 0x444], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040438
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
mov edx, dword [ebp - 0x454]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004045f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040480
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003ff57
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x20
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x1e
jmp 0x1004038d
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x12
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x10
jmp 0x1004038d
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100406dd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x454]
mov esi, 0x10154988
test eax, eax
mov byte [ebp - 4], 0x15
cmovne esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0
push eax
push esi
push 0
push 0xfde9
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0
call fcn.10018570
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x42c], 4
cmp dword [ecx - 4], 1
jle 0x10040583
push dword [ecx - 0xc]
lea ecx, [ebp - 0x444]
call fcn.10014050
mov ecx, dword [ebp - 0x444]
push dword [ebp - 0x448]
push ecx
push dword [ebp - 0x420]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x44c]
push dword [eax]
lea eax, [ebp - 0x450]
push str.download_fail__s
push eax
call fcn.1001a680
mov edx, dword [ebp - 0x444]
add esp, 0xc
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100405db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x450]
push 0
push str.halopet
push 0
push 0
push esi
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040614
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x454]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040635
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040656
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040677
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x1003ff57
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 6
jmp 0x1004038d
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
sub esp, 8
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.10012e00
call fcn.10015d10
call fcn.100757aa
push 0x80004005
call fcn.10013b40
int3