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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x101dd594]
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.100518c0
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 0x10044447
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.1001d450
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.10051800
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 0x100441b7
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x100441cf
call fcn.1001b540
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10044b8a
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 0x101942d4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.1001d4c0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1001ca60
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 0x1004424e
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.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x10044b6e
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 7
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 4
push 0
push str.halopet
push 0
push 0
push str.start_download
call fcn.100caab0
push dword [ebp - 0x41c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100444a3
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10150460
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call fcn.100b8790
add esp, 0x18
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10044b94
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 0x1004435d
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100183a0
jmp 0x10044388
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044366
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.10020080
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 0x10044488
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x41c]
push eax
call fcn.1001c9f0
push 0
push str.halopet
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x444], 1
call fcn.1001e650
mov ecx, eax
call fcn.100caab0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100443ff
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 0x10044420
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 0x10044441
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 0x10044469
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.10128191
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 0x100444a3
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.1001b540
mov ecx, eax
test ecx, ecx
je 0x10044b9e
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 + 0x18]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x420], eax
call fcn.10127dee
add esp, 4
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1004451f
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1001c7e0
jmp 0x10044521
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.1001c130
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.1001d620
test eax, eax
lea ecx, [ebp - 0x454]
mov eax, dword [ebp - 0x418]
je 0x1004459d
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x444], esi
jmp 0x100445a0
add eax, 0x1c
push eax
call fcn.1001c930
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x100445d5
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x100445d5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x100445d5
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100449d2
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.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x100449b6
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x11
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0xc
push 0
push str.halopet
push 0
push 0
push str.download_suc
call fcn.100caab0
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 0x10044704
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x41c]
jl 0x100446ef
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x100446ef
push dword [ebp - 0x448]
call fcn.1001d450
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 0x100446dc
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 0x100446fe
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x44c]
push eax
call fcn.10020080
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004492e
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10150460
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
call fcn.100b8790
add esp, 0x18
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10044ba8
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 0x10044781
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100183a0
jmp 0x100447b2
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044790
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.10020080
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 0x1004488a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x18
push eax
call fcn.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x10044866
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1a
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.halopet
push 0
push 0
push str.md5_suc
call fcn.100caab0
mov eax, dword [ebp - 0x444]
jmp 0x10044907
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1b
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x19
test al, al
je 0x10044bc8
jmp 0x10044bb2
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1d
push eax
call fcn.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1004499a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1f
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.halopet
push 0
push 0
push str.md5_fail
call fcn.100caab0
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 0x10044928
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 0x1004494f
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 0x10044970
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 0x10044447
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10044447
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x20
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x1e
jmp 0x1004487d
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x12
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x10
jmp 0x1004487d
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10044bcd
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, 0x10193aa8
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.1001c470
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x42c], 4
cmp dword [ecx - 4], 1
jle 0x10044a73
push dword [ecx - 0xc]
lea ecx, [ebp - 0x444]
call fcn.10017f50
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.1001e580
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 0x10044acb
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.1001e650
mov ecx, eax
call fcn.100caab0
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10044b04
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 0x10044b25
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 0x10044b46
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 0x10044b67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x10044447
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 6
jmp 0x1004487d
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
sub esp, 8
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.10016d00
call fcn.10019c10
call fcn.100a32e6
push 0x80004005
call fcn.10017a40
int3