Function at 0x480390
Capabilities:
Check if file exists
Create thread
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a408d
mov eax, dword fs:[0]
push eax
mov eax, 0x6343c
call fcn.005514a0
mov eax, dword [0x60f074]
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 eax, ecx
mov dword [ebp - 0x63448], eax
add eax, 0x18
lea ecx, [ebp - 0x6d0]
push eax
call fcn.00405a50
push 0x5cb60c
lea ecx, [ebp - 0x6d0]
mov dword [ebp - 4], 0
call fcn.0042b3b0
test al, al
jne 0x48098c
cmp dword [ebp - 0x6bc], 8
lea edx, [ebp - 0x6d0]
mov eax, dword [ebp - 0x6c0]
cmovae edx, dword [ebp - 0x6d0]
mov dword [ebp - 0x63444], edx
cmp eax, 1
jb 0x480472
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [0x5d2bbc]
lea ebx, [edx + ecx*2]
mov edi, ebx
sub edi, 0x5d2bbc
cmp word [ebx], ax
jne 0x480466
mov esi, 1
mov ecx, 0x5d2bbc
mov dx, word [edi + ecx]
cmp dx, word [ecx]
jne 0x480460
add ecx, 2
sub esi, 1
jne 0x480445
sub ebx, dword [ebp - 0x63444]
sar ebx, 1
jmp 0x480475
mov edx, dword [ebp - 0x63444]
cmp ebx, edx
je 0x480472
sub ebx, 2
sub edi, 2
jmp 0x480436
or ebx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x720], 0
inc ebx
mov word [ebp - 0x730], ax
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x71c], 7
cmp eax, ebx
jb 0x4809b5
sub eax, ebx
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x6bc], 8
lea eax, [ebp - 0x6d0]
cmovae eax, dword [ebp - 0x6d0]
push ecx
lea ecx, [ebp - 0x730]
lea eax, [eax + ebx*2]
push eax
call fcn.00405c70
push 0x20a
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x20a
lea eax, [ebp - 0x6b8]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x6b8]
push str._s__
push eax
call fcn.004834a0
add esp, 0xc
lea eax, [ebp - 0x730]
cmp dword [ebp - 0x71c], 8
cmovae eax, dword [ebp - 0x730]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x63440]
call fcn.0048bfe0
lea ecx, [ebp - 0x63440]
mov byte [ebp - 4], 2
call fcn.0048c6f0
cmp dword [ebp - 0x6bc], 8
lea eax, [ebp - 0x5f10]
push 0x1048
push 0
lea esi, [ebp - 0x6d0]
mov dword [ebp - 0x60fd8], 1
cmovae esi, dword [ebp - 0x6d0]
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x5f10]
push esi
push 0x5d3b70
push 0x823
push eax
call fcn.00483470
push 0x208
lea eax, [ebp - 0x6320]
mov dword [ebp - 0x60d98], 0x927c0
push 0
push eax
call fcn.0056f6e0
add esp, 0x1c
lea eax, [ebp - 0x2a0]
push eax
push 0x5d3b70
lea eax, [ebp - 0x6320]
push 0x103
push eax
call fcn.0047def0
mov eax, dword [ebp - 0x63434]
add esp, 0x10
test eax, eax
jne 0x4806c8
lea eax, [ebp - 0x5f10]
push str.MetalinkFile
push eax
call fcn.0056e746
add esp, 8
test eax, eax
je 0x48062f
xor ecx, ecx
mov word [eax], cx
add eax, 0x1a
push eax
call fcn.0058198d
add esp, 4
mov dword [ebp - 0x60dac], eax
mov ecx, dword [ebp - 0x760]
mov eax, 0xe1800e19
sub ecx, dword [ebp - 0x764]
imul ecx
add edx, ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x480669
push eax
lea edx, [ebp - 0x63430]
lea ecx, [ebp - 0x5f10]
call fcn.0048c5f0
add esp, 4
test eax, eax
je 0x4806be
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x60fdc], eax
test eax, eax
je 0x4806be
lea eax, [ebp - 0x63444]
mov dword [ebp - 0x63444], 0
push eax
push 0
lea eax, [ebp - 0x63440]
mov dword [ebp - 0x6348], 8
push eax
push 0x48c9e0
push 0
push 0
call fcn.00577f56
add esp, 0x18
mov dword [ebp - 0x63434], eax
jmp 0x4806c4
mov eax, dword [ebp - 0x63434]
test eax, eax
je 0x4806d7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x63434]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push dword [ebp - 0x60fdc]
mov dword [ebp - 0x63434], 0
call esi
push 0xa
mov dword [ebp - 0x60fdc], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480976
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
mov dword [ebp - 0x6d8], 0
xor eax, eax
mov dword [ebp - 0x6d4], 7
lea ecx, [ebp - 0x2a0]
mov word [ebp - 0x6e8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480755
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6e8]
call fcn.00405c70
push 0xfde9
lea edx, [ebp - 0x6e8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x700]
call fcn.00472c20
add esp, 4
lea ecx, [ebp - 0x6e8]
mov byte [ebp - 4], 5
call fcn.00405c10
cmp dword [ebp - 0x6ec], 0x10
lea ecx, [ebp - 0x700]
lea edx, [ebp - 0x90]
cmovae ecx, dword [ebp - 0x700]
call fcn.00475ef0
mov edx, dword [ebp - 0x63448]
lea ecx, [ebp - 0x718]
push 0xfde9
call fcn.00472c20
add esp, 4
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 6
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4807e8
mov edi, dword [ebp - 0x704]
lea eax, [ebp - 0x90]
mov esi, dword [ebp - 0x718]
sub edx, ecx
mov ebx, dword [ebp - 0x708]
lea ecx, [ebp - 0x718]
push edx
cmp edi, 0x10
mov edx, ebx
push eax
cmovae ecx, esi
call fcn.00404110
add esp, 8
test al, al
je 0x4808f5
push 0x208
lea eax, [ebp - 0x4a8]
mov word [ebp - 0x6df], 0
push 0
push eax
mov dword [ebp - 0x6dc], 0
mov byte [ebp - 0x6d8], 0
mov dword [ebp - 0x6d4], 0
mov byte [ebp - 0x6e0], 1
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x5d3ba4
push eax
lea eax, [ebp - 0x4a8]
push str.__s___s
push eax
call fcn.00457cd0
add esp, 0x10
lea eax, [ebp - 0x4a8]
lea ecx, [ebp - 0x748]
push eax
call fcn.0040fa30
push ecx
lea edx, [ebp - 0x6e0]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x748]
call fcn.00476430
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x748]
call fcn.00405c10
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, 0x10
lea eax, [ebp - 0x718]
push ebx
cmovae eax, esi
mov ecx, 0x611818
push eax
call fcn.00403690
mov edi, dword [ebp - 0x704]
mov esi, dword [ebp - 0x718]
cmp edi, 0x10
jb 0x480925
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x48091b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4809ba
push ecx
push esi
call fcn.0055053d
add esp, 8
mov edx, dword [ebp - 0x6ec]
cmp edx, 0x10
jb 0x48095b
mov ecx, dword [ebp - 0x700]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x480951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4809bf
push edx
push ecx
call fcn.0055053d
add esp, 8
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x6ec], 0xf
mov byte [ebp - 0x700], 0
lea ecx, [ebp - 0x63440]
call fcn.0048c390
lea ecx, [ebp - 0x730]
call fcn.00405c10
lea ecx, [ebp - 0x6d0]
call fcn.00405c10
xor eax, eax
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.00550156
mov esp, ebp
pop ebp
ret
call fcn.0040b610
call fcn.00572795
call fcn.00572795
int3