Function at 0x423560
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45bdae
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x49c23c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
xor edi, edi
mov dword [esp + 0x20], edi
mov eax, dword [0x49ea64]
mov edx, dword [eax + 0xc]
mov ecx, 0x49ea64
mov dword [esp + 0x240], edi
mov dword [esp + 0x28], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
push 0x208
lea eax, [esp + 0x30]
push edi
mov esi, 1
push eax
mov dword [esp + 0x24c], edi
mov dword [esp + 0x2c], esi
call fcn.00440500
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str._setting.ini
lea ecx, [esp + 0x1c]
call fcn.0040fd40
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24c], esi
call fcn.0040f6d0
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x240], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x462e80
push str.test
push str.test
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x423685
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.0040f7c0
jmp 0x4237f2
xor eax, eax
cmp ax, word [0x49e5c0]
jne 0x4237ce
push esi
push 0x23
push 0x49e5c0
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4236b7
push 0x104
push 0x49e5c0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [0x49ea64]
mov eax, dword [edx + 0xc]
mov ecx, 0x49ea64
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push str.360sd.exe
lea ecx, [esp + 0x20]
mov byte [esp + 0x244], 4
call fcn.0040fd40
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x24c], 5
call fcn.0040f6d0
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42372c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x240], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
test esi, esi
je 0x423763
push str.360sd_
jmp 0x423768
push str.360safe_
call fcn.0040f910
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
push eax
push esi
push 0x49e5c0
call fcn.00442266
add esp, 0xc
push 0x49e5c0
call edi
test eax, eax
jne 0x42379a
push eax
push 0x49e5c0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.setting.ini
push 0x49e5c0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esi - 0x10]
mov byte [esp + 0x240], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4237ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x49e5c0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4237d6
sub eax, edx
sar eax, 1
push eax
push 0x49e5c0
mov ecx, ebp
call fcn.0040f380
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42381a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004404e6
add esp, 0x234
ret