Function at 0x401190
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x544]
push eax
mov ebx, ecx
push 0x104
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push 0
push 0x4a8798
lea ecx, [esp + 0x550]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [esp + 0x860]
push 0x104
lea ecx, [esp + 0x340]
call fcn.00444b20
mov dword [esp + 0x10], vtable.REPAIRDOWNLOADINFO.0
push 0x104
lea edx, [esp + 0x34]
push edx
push str.Background_Torrent_Server
mov edx, str.SoftwareBlizzard_EntertainmentBlizzard_Downloader
mov ecx, reloc.WS2_32.dll_accept
mov dword [esp + 0x864], 0
call fcn.004081a0
mov ebp, dword [esp + 0x864]
mov edi, 0x4a85b4
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40136b
mov edi, 0x4a85ac
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40136b
mov edi, 0x4a85a4
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401287
push str.kr.repair.worldofwarcraft.com
push 0x104
lea ecx, [esp + 0x13c]
push ecx
jmp 0x40137d
mov edi, 0x4a859c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401357
mov edi, 0x4a8594
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401357
mov edi, 0x4a8584
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401357
mov edi, 0x4a858c
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401357
mov edi, 0x4a857c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401357
mov edi, 0x4a8574
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401343
mov edi, 0x4a856c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401343
mov edi, 0x4a8564
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40133c
mov edi, 0x4a855c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40133c
xor eax, eax
jmp 0x4015ca
push str.tw.repair.worldofwarcraft.com
jmp 0x401370
push str.cn.repair.warcraftchina.com
push 0x104
lea ecx, [esp + 0x13c]
push ecx
jmp 0x40137d
push str.eu.repair.worldofwarcraft.com
push 0x104
lea edx, [esp + 0x13c]
push edx
jmp 0x40137d
push str.us.repair.worldofwarcraft.com
push 0x104
lea eax, [esp + 0x13c]
push eax
call fcn.0044e200
add esp, 0xc
cmp byte [esp + 0x30], 0
je 0x401414
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401397
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x2f
jne 0x4013bf
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4013b0
sub eax, edx
mov byte [esp + eax + 0x2f], cl
mov eax, str.http:__
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4013c7
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push str.http:__
push ecx
call fcn.0048b513
add esp, 0xc
test eax, eax
jne 0x40140e
mov eax, str.http:__
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4013f1
sub eax, edx
push 0x104
lea edx, [esp + eax + 0x34]
lea ecx, [esp + 0x34]
call fcn.00444b20
lea edx, [esp + 0x30]
jmp 0x40141b
lea edx, [esp + 0x134]
push 0x104
lea ecx, [esp + 0x23c]
call fcn.00444b20
mov esi, dword [esp + 0x28]
push ebp
lea edx, [esp + 0x340]
push edx
push ebp
lea eax, [esp + 0x244]
push eax
push esi
lea ecx, [esp + 0x65c]
push 0x104
push ecx
call fcn.0044e200
push ebp
lea edx, [esp + 0x35c]
push edx
push ebp
lea eax, [esp + 0x15c]
push eax
push esi
lea ecx, [esp + 0x77c]
push 0x104
push ecx
call fcn.0044e200
add esp, 0x38
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x401335
mov ebp, dword [esp + 0x868]
push str.RepairDownload
push 0
push 0
push 0
mov dword [0x4e2120], 0
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [esp + 0x86c]
mov edi, 1
lea edx, [esp + 0x10]
lea ecx, [esp + 0x648]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
call fcn.00463590
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edx
call esi
cmp dword [esp + 0x18], 0
jne 0x40154f
cmp byte [0x4e2a89], 0
jne 0x40154f
cmp byte [esp + 0x30], 0
jne 0x40151d
cmp dword [0x4e2120], 3
je 0x40154f
mov eax, dword [esp + 0x1c]
push eax
mov dword [0x4e2120], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x74c]
call fcn.00463590
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 0
jne 0x40156c
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
je 0x4015c6
cmp dword [esp + 0x18], 0
mov eax, str.succeed
jne 0x401581
mov eax, str.failed
push eax
push ebx
lea ecx, [esp + 0x448]
push str.Downloading__s__s_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x450]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015a3
sub eax, edx
push eax
lea edx, [esp + 0x444]
push edx
mov edx, str.Repair.log
mov ecx, 4
call fcn.00464150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84c
ret 0x10