Function at 0x404ae0
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47770c
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x48300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403b80
mov dword [ebp - 4], 0
mov ax, word [0x47be14]
movups xmm0, xmmword [str.GlobalFileWatch_SINGLETON]
mov word [ebp - 0x14], ax
mov al, byte [0x47be16]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x2c]
push eax
push 0
movups xmmword [ebp - 0x2c], xmm0
push 0
movq xmm0, qword [0x47be0c]
push 0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14c], esi
test esi, esi
je 0x404cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404cbf
push 0x47bff8
push 0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
add esp, 8
call fcn.00401b70
call fcn.00401ba0
push 0x104
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.FileType.ini
lea eax, [ebp - 0x130]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x160]
call fcn.00403890
mov edi, eax
mov dword [ebp - 0x150], edi
cmp edi, 0x484180
je 0x404c58
mov edx, dword [0x484180]
mov ecx, dword [edx + 4]
mov dword [ecx], 0
mov ecx, dword [edx]
test ecx, ecx
je 0x404c1f
mov edi, dword [ecx]
push 0xc
push ecx
call fcn.00475c12
add esp, 8
mov ecx, edi
test edi, edi
jne 0x404c06
mov edi, dword [ebp - 0x150]
mov eax, dword [0x484180]
mov dword [eax], eax
mov eax, dword [0x484180]
mov dword [eax + 4], eax
mov ecx, dword [0x484180]
mov dword [0x484184], 0
mov eax, dword [edi]
mov dword [0x484180], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [0x484184]
mov dword [0x484184], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x160]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x404c83
nop dword [eax]
mov edi, dword [eax]
push 0xc
push eax
call fcn.00475c12
add esp, 8
mov eax, edi
test edi, edi
jne 0x404c70
push 0xc
push dword [ebp - 0x160]
call fcn.00475c12
push 0
push 0
push 0x404620
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404ce4
push str.create_ReadDirectoryThread_fail_n
push str.main
push dword [0x484188]
call fcn.00403170
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x138], xmm0
push 0x10
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
call fcn.00475be2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
xorps xmm0, xmm0
lea ecx, [ebp - 0x140]
movlpd qword [ebp - 0x140], xmm0
call fcn.00403d20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x404d5c
push 0x1388
call esi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.00404fe0
jmp 0x404d20
cmp edi, eax
je 0x404d44
mov esi, dword [ebp - 0x140]
mov dword [ebp - 0x168], eax
mov edi, dword [esi]
cmp edi, esi
je 0x404f55
nop word [eax + eax]
mov eax, dword [ebp - 0x138]
mov byte [ebp - 0x150], 0
mov esi, dword [eax]
cmp esi, eax
je 0x404dd8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404fce
push eax
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
mov ecx, dword [ebp - 0x150]
add esp, 8
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov eax, dword [esi]
mov esi, eax
mov dword [ebp - 0x150], ecx
cmp eax, dword [ebp - 0x138]
jne 0x404d93
test cl, cl
jne 0x404f43
mov esi, dword [edi + 0xc]
push 0
push 0
mov eax, dword [esi - 0xc]
push eax
push esi
push 0
push 3
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
mov dword [ebp - 0x164], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x158], eax
test eax, eax
je 0x404fc9
push dword [ebp - 0x164]
push eax
push dword [ebp - 0x154]
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [edi + 8]
push dword [ebp - 0x158]
push str.Audit_disk_parition_:_ls_DiskType:_d_._n
push str.main
push dword [0x484188]
call fcn.00403170
add esp, 0x14
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x404fce
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x144], eax
lea eax, [edi + 0xc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x144]
call fcn.00405140
cmp dword [ebp - 0x134], 0xfffffff
mov eax, dword [edi + 8]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x154], eax
je 0x404fbe
lea eax, [ebp - 0x138]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 4
push 0x10
mov dword [ebp - 0x15c], 0
call fcn.00475be2
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], esi
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
lea eax, [ebp - 0x144]
push eax
call fcn.004036b0
mov ecx, dword [ebp - 0x154]
mov byte [ebp - 4], 3
inc dword [ebp - 0x134]
mov dword [ebp - 0x15c], 0
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [eax], esi
lea eax, [edi + 0xc]
push dword [edi + 8]
sub esp, 0xc
push eax
call fcn.004057b0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x144]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov edi, eax
mov esi, dword [ebp - 0x140]
cmp eax, esi
jne 0x404d80
mov eax, dword [esi + 4]
mov dword [eax], 0
mov esi, dword [esi]
test esi, esi
je 0x404f92
mov edx, dword [esi + 0xc]
or eax, 0xffffffff
mov edi, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404f81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10
push esi
call fcn.00475c12
add esp, 8
mov esi, edi
test edi, edi
jne 0x404f64
mov eax, dword [ebp - 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x168]
mov dword [eax], eax
mov eax, dword [ebp - 0x140]
mov dword [eax + 4], eax
mov dword [ebp - 0x13c], 0
jmp 0x404d44
push str.list_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
call fcn.00403730
push 0x80004005
call fcn.00403360
int3