Function at 0x40a9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429741
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x434250]
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 0x42b84c
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 0x40aa37
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 0x40aa40
sub eax, edx
test eax, eax
jle 0x40aa61
lea ecx, [ecx]
cmp byte [esp + eax + 0x70], 0x5c
je 0x40aa61
mov byte [esp + eax + 0x70], 0
dec eax
test eax, eax
jg 0x40aa50
lea eax, [esp + 0x70]
lea edi, [ebx + 0x34]
lea edx, [eax + 1]
jmp 0x40aa70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aa70
sub eax, edx
push eax
lea edx, [esp + 0x74]
push edx
mov ecx, edi
call fcn.00405d40
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 0x40aaa7
sub eax, ecx
push eax
lea ecx, [esp + 0x17c]
push ecx
mov ecx, esi
call fcn.00405d40
push 0xa
push str.ShiQiang_
mov ecx, esi
call fcn.00405de0
push 0x42b7bc
lea edx, [esp + 0x14]
push edi
push edx
call fcn.004061c0
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 0x40ab4a
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x40ab3a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ab3a
push eax
call fcn.00405b40
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40ab2f
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 0x40ab46
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00405d40
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 0x40ab73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
call fcn.004162e0
mov edi, dword [edi]
xor esi, esi
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x29c], 1
call fcn.00416380
test al, al
jne 0x40abcf
mov eax, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x294], 0xffffffff
mov dword [esp + 0x18], 0x42b6a8
je 0x40abbe
push eax
call fcn.0041df9e
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
jmp 0x40acaf
push str.CHANNEL_SPREAD
push str.WNWB_CONF
lea ecx, [esp + 0x20]
call fcn.00415450
mov ecx, eax
call fcn.00415500
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40ac7f
mov eax, dword [0x435644]
mov ecx, 0x435644
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42bb68
mov ecx, esi
mov byte [esp + 0x298], 2
call fcn.00415e70
cmp eax, edi
jne 0x40ac25
xor ecx, ecx
jmp 0x40ac39
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ac30
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00405d40
mov esi, dword [esp + 0xc]
push str.13265555580
push esi
call fcn.0041e2b7
add esp, 8
test eax, eax
jne 0x40ac5d
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 0x40ac7f
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], 0x42b6a8
je 0x40aca3
push eax
call fcn.0041df9e
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x18]
call fcn.00415d70
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
call fcn.0041d05e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret