Function at 0x406240
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x495e6e
mov eax, dword fs:[0]
push eax
mov eax, 0x11524
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x11520], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x11538]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x1053a]
push ebx
push eax
mov word [esp + 0x10540], bx
call fcn.00475860
add esp, 0xc
push 0x206
lea ecx, [esp + 0x10332]
push ebx
push ecx
mov word [esp + 0x10338], bx
call fcn.00475860
add esp, 0xc
lea edx, [esp + 0x1032c]
push edx
push 0x104
mov byte [esp + 0x23], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x206
lea eax, [esp + 0x1012a]
push ebx
push eax
mov word [esp + 0x10130], bx
call fcn.00475860
add esp, 0xc
push str.LocalURL.ini
lea ecx, [esp + 0x10330]
push ecx
push 0x4ab1d0
lea edx, [esp + 0x10130]
call fcn.00404860
add esp, 0xc
push 0xff
lea edx, [esp + 0x10029]
push ebx
push edx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x10030], bl
call fcn.00475860
add esp, 0xc
push 0x4ab1dc
lea eax, [esp + 0x10128]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0047281b
add esp, 0xc
test eax, eax
jne 0x4063ae
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
call fcn.004728f2
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0x100
lea eax, [esp + 0x10028]
push eax
push 0x4aaf40
push ecx
call fcn.00472d09
mov edx, dword [esp + 0x2c]
push edx
call fcn.00472b50
add esp, 0x14
push 0x400
lea eax, [esp + 0x10538]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x10030]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov byte [esp + 0x1b], 1
push 0x7fe
lea edx, [esp + 0x10d3a]
push ebx
push edx
mov word [esp + 0x10d40], bx
call fcn.00475860
mov eax, dword [0x4c5cdc]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jle 0x4063e6
push eax
push 0x400
lea eax, [esp + 0x10d3c]
push eax
jmp 0x4063f8
push 0x4ab1e0
push 0x400
lea ecx, [esp + 0x10d3c]
push ecx
call fcn.00472d52
add esp, 0xc
push str.PatchConfigList.xml
push str.DownLoad_PatchConfigList__FileName__s_
call fcn.004169a0
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
add esp, 8
mov dword [esp + 0x20], ebx
cmp byte [esp + 0x1b], bl
je 0x40647f
lea edx, [esp + 0x10534]
push edx
push 0x4ab288
lea esi, [esp + 0x402c]
call fcn.0040a9e0
add esp, 8
push eax
call ebp
push str.PatchConfigList.xml
push 0x4ab290
lea esi, [esp + 0x402c]
call fcn.0040a9e0
mov edi, eax
lea eax, [esp + 0x1053c]
push eax
push 0x4ab288
lea esi, [esp + 0xc034]
call fcn.0040a9e0
push edi
mov ecx, eax
call fcn.00415580
add esp, 0x14
jmp 0x4064e4
push str.PatchConfigList.xml
lea ecx, [esp + 0x10d38]
push ecx
push 0x4ab29c
lea esi, [esp + 0xc030]
call fcn.0040a9e0
add esp, 0xc
push eax
call ebp
push str.PatchConfigList.xml
push 0x4ab290
lea esi, [esp + 0x802c]
call fcn.0040a9e0
push str.PatchConfigList.xml
lea edx, [esp + 0x10d40]
push edx
push 0x4ab29c
lea esi, [esp + 0x38]
mov edi, eax
call fcn.0040a9e0
add esp, 0x14
push edi
mov ecx, eax
call fcn.00415580
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4064fe
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x40641c
cmp esi, 1
jne 0x40650a
mov esi, 0x80004005
jmp 0x40650e
cmp esi, ebx
jge 0x406570
test byte [0x4d5f3c], 1
jne 0x406542
or dword [0x4d5f3c], 1
mov dword [esp + 0x11540], ebx
call fcn.00405b90
push 0x4966b0
call fcn.004724a2
add esp, 4
mov dword [esp + 0x11540], 0xffffffff
mov edi, dword [0x4d5f20]
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
add edi, 0x3ec
push eax
call fcn.00413e50
add esp, 4
call fcn.00413dd0
add esp, 4
mov dword [0x4c5c10], 5
mov eax, esi
mov ecx, dword [esp + 0x11538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11520]
xor ecx, esp
call fcn.004716ba
add esp, 0x11530
ret