Function at 0x40c7a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459217
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f4], ecx
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], eax
call fcn.00401fe0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x90], 0
jne 0x40c81c
push 0xa
push str.C:DADSLOG
lea ecx, [ebp - 0x88]
call fcn.0040bb20
jmp 0x40c8c0
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push str.DADSLLOG
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040bb20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004018f0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x40c86e
push 0xffffffffffffffff
push 0
push eax
call fcn.0040b7b0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40c880
inc eax
push eax
push dword [ebp - 0x40]
call fcn.0040bd10
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40c8aa
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0040bd10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040b7b0
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x18], 0
push eax
call fcn.0040b7b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00401790
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40c902
mov eax, dword [esi]
jmp 0x40c904
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40c921
cmp dword [esi + 0x14], 8
jb 0x40c918
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40c934
cmp dword [esi + 0x14], 8
jb 0x40c929
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40c946
inc eax
push eax
push dword [ebp - 0x40]
call fcn.0040bd10
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40c970
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0040bd10
push 0xb0
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x16c]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0040d4f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ftime64_s]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x30]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Starting_dispatcher_main_at_folder:
mov ecx, eax
call fcn.0040fd30
mov edx, dword [ebp - 0x1f4]
mov ecx, eax
call fcn.0040ff70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea eax, [ebp - 0x38]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x30]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Log_File_at:
mov ecx, eax
call fcn.0040fd30
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.0040ff70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov esi, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 7
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.0040b7b0
xor eax, eax
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040b7b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x70]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x70]
mov esi, eax
cmovae ecx, dword [ebp - 0x70]
xor edi, edi
sub esi, ecx
xor edx, edx
inc esi
shr esi, 1
cmp ecx, eax
cmova esi, edi
test esi, esi
je 0x40caf1
lea eax, [edx + 0x5f]
nop
cmp word [ecx], 0x5c
jne 0x40cae9
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jne 0x40cae0
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmp edi, 8
cmovae ecx, dword [ebp - 0x58]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x58]
mov esi, eax
cmovae ecx, dword [ebp - 0x58]
xor edx, edx
sub esi, ecx
inc esi
shr esi, 1
cmp ecx, eax
cmova esi, edx
test esi, esi
je 0x40cb34
lea eax, [edx + 0x26]
cmp word [ecx], 0x5c
jne 0x40cb29
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jne 0x40cb20
mov edi, dword [ebp - 0x44]
cmp edi, 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x1f0]
cmovae eax, dword [ebp - 0x58]
sub esp, 8
push eax
call fcn.004110b0
xorps xmm0, xmm0
lea eax, [ebp - 0x1f0]
movq qword [ebp - 0x30], xmm0
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x30], eax
call fcn.00411e20
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ftime64_s]
cmp eax, 0xffffffff
jne 0x40cd06
mov ecx, dword [0x46e0f8]
lea eax, [ebp - 0x20]
or ecx, dword [0x46e0fc]
push eax
je 0x40cc61
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Dispatcher_has_already_been_started_at_this_folder._Aborting_this_dispatcher.
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Ending_dispatcher_main...
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x168]
call fcn.0040f3f0
test eax, eax
jne 0x40cec3
push eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
jmp 0x40cec3
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Dispatcher_has_already_been_started_at_this_folder__but_were_waiting_here.
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x1f0]
call fcn.00410f70
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Waited_and_got_the_lock.
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
cmp byte [0x46e100], 0
je 0x40cd5e
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Start_dispatcher_service...
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xor eax, eax
mov dword [ebp - 0xa4], 0
push 0xffffffffffffffff
xorps xmm0, xmm0
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0x1f4]
movq qword [ebp - 0xac], xmm0
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
call fcn.0040b7b0
lea eax, [ebp - 0x16c]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.0040c670
cmp byte [0x46e100], 0
je 0x40ce1e
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Quit_dispatcher_service...
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xa8]
cmp eax, 8
jb 0x40ce3a
inc eax
push eax
push dword [ebp - 0xbc]
call fcn.0040bd10
lea eax, [ebp - 0x20]
push eax
call edi
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00457960
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0x18]
cdq
add esi, eax
push 0x410180
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_long___int64__]
mov edx, str._Ending_dispatcher_main...
mov ecx, eax
call fcn.0040fd30
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x168]
call fcn.0040f3f0
test eax, eax
jne 0x40ceb2
push eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40cec3
lea ecx, [ebp - 0x1f0]
call fcn.00410e10
cmp byte [ebp - 0x170], 0
jne 0x40cede
lea ecx, [ebp - 0x18c]
mov byte [ebp - 0x170], 1
call fcn.00411dc0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40cef0
inc eax
push eax
push dword [ebp - 0x58]
call fcn.0040bd10
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40cf16
inc eax
push eax
push dword [ebp - 0x70]
call fcn.0040bd10
xor eax, eax
mov dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.0040d440
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x40cf59
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.0040bd10
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x40cf8b
inc eax
push eax
push dword [ebp - 0x88]
call fcn.0040bd10
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.00456d98
mov esp, ebp
pop ebp
ret