Function at 0x523460
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Delete file
Enumerate files on windows
Get common file path
Get ntdll base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x573c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
xor esi, esi
push 0x24c
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x30], esi
call sub.MSVCR80.dll_memset
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x206
lea ecx, [esp + 0x2ba]
push esi
mov dword [esp + 0x4d0], esi
push ecx
mov word [esp + 0x2c0], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x2b4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x523510
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x2b4]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00410570
push 5
push str.Inf_
lea edx, [esp + 0x20]
push edx
call fcn.00410240
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str..inf
call fcn.0041a8a0
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52358a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, 0xffffffff
jne 0x5235ae
mov dword [esp + 0x4c8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x5236ad
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea ebx, [ebx]
test byte [esp + 0x24], 0x10
jne 0x523673
push 0x3e
lea ecx, [esp + 0x27a]
push 0
push ecx
mov word [esp + 0x280], 0
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x64]
call fcn.0041a8a0
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push 0x20
lea edx, [esp + 0x27c]
push edx
push 0x58c320
push str.Ntkr
push str.Strings
call esi
lea eax, [esp + 0x274]
push str.Liebao_WiFi
push eax
call edi
add esp, 8
test eax, eax
je 0x523648
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x523667
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x523673
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5235c0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x4c8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5236b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.00569ed6
add esp, 0x4b8
ret