Function at 0x40b470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c881
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x437250]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [esp + 0x284], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x70], 0
mov ecx, 0x40
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x74]
push eax
push 0x42e918
mov dword [esp + 0x18], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call edi
mov al, byte [esp + 0x70]
test al, al
jne 0x40b4f7
push 0x104
lea ecx, [esp + 0x74]
push ecx
push str.WnOnlineService.exe
call esi
push eax
call edi
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b500
sub eax, edx
test eax, eax
jle 0x40b521
lea ecx, [ecx]
cmp byte [esp + eax + 0x70], 0x5c
je 0x40b521
mov byte [esp + eax + 0x70], 0
dec eax
test eax, eax
jg 0x40b510
lea eax, [esp + 0x70]
lea edi, [ebx + 0x34]
lea edx, [eax + 1]
jmp 0x40b530
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b530
sub eax, edx
push eax
lea edx, [esp + 0x74]
push edx
mov ecx, edi
call fcn.00401890
push 0
push 0x2b
lea eax, [esp + 0x180]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x178]
lea esi, [ebx + 0x38]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b567
sub eax, ecx
push eax
lea ecx, [esp + 0x17c]
push ecx
mov ecx, esi
call fcn.00401890
push 0xa
push str.ShiQiang_
mov ecx, esi
call fcn.00401930
push 0x42e888
lea edx, [esp + 0x14]
push edi
push edx
call fcn.004019e0
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
mov dword [esp + 0x294], 0
je 0x40b60a
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x40b5fa
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b5fa
push eax
call fcn.00401360
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b5ef
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0x10
mov dword [edi], eax
jmp 0x40b606
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00401890
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x294], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b633
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
call fcn.00418e30
mov edi, dword [edi]
xor esi, esi
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x29c], 1
call fcn.00418ed0
test al, al
jne 0x40b68f
mov eax, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x18], 0x42e2c4
je 0x40b67e
push eax
call fcn.00420ae8
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
jmp 0x40b76f
push str.CHANNEL_SPREAD
push str.WNWB_CONF
lea ecx, [esp + 0x20]
call fcn.00417fa0
mov ecx, eax
call fcn.00418050
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40b73f
mov eax, dword [0x438664]
mov ecx, 0x438664
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42ec24
mov ecx, esi
mov byte [esp + 0x298], 2
call fcn.004189c0
cmp eax, edi
jne 0x40b6e5
xor ecx, ecx
jmp 0x40b6f9
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40b6f0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00401890
mov esi, dword [esp + 0xc]
push str.13265555580
push esi
call fcn.00420aed
add esp, 8
test eax, eax
jne 0x40b71d
mov byte [ebx + 0x48], al
lea eax, [esi - 0x10]
mov byte [esp + 0x294], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b73f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
cmp eax, edi
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x18], 0x42e2c4
je 0x40b763
push eax
call fcn.00420ae8
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x18]
call fcn.004188c0
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
call fcn.0042001e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret