Function at 0x404650
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413423
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x19c]
call fcn.004045a0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x4046b3
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
sub esp, 8
mov dword [ebp - 0x170], eax
mov eax, esp
mov dword [ebp - 0x174], ecx
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x178], 0xc0000000
mov byte [ebp - 4], 0
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x2c]
push 6
push str.Log
mov dword [eax], 1
call fcn.00409940
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x188]
cmp ecx, 0xf
jbe 0x404736
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40472c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40472c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jns 0x404780
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x3c]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x160], eax
sub esp, 8
movzx eax, word [ebp - 0x3a]
xorps xmm0, xmm0
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x158], eax
mov eax, esp
movq qword [ebp - 0x16c], xmm0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x16c], 0x20000000
mov dword [ebp - 0x168], 0x20000004
mov dword [ebp - 0x164], 0x20000008
mov byte [ebp - 4], 3
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x184]
push 0x1f
push str.:04:02:02_WatchDogDu.log
mov dword [eax], 3
call fcn.00409940
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x184]
cmp dword [ebp - 0x170], 0xf
mov edx, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x174]
sub eax, edx
mov dword [ebp - 0x148], edx
push edi
push ecx
cmp edi, eax
ja 0x404866
cmp dword [ebp - 0x18], 0xf
lea esi, [ebp - 0x2c]
lea eax, [edi + edx]
cmova esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x148]
lea eax, [esi + edi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x404875
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00408520
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x170]
cmp ecx, 0xf
jbe 0x4048b5
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4048ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
push 0xb0
lea eax, [ebp - 0x140]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x140]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.004067b0
mov byte [ebp - 4], 6
lea edi, [ebp - 0x140]
mov eax, dword [ebp - 0x140]
push 0
add edi, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Locimp::_New_Locimp_bool_]
add esp, 4
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x16c]
push 0x431594
call fcn.00406ce0
push 0
mov byte [ebp - 4], 7
mov byte [ebp - 0x141], 0
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
mov eax, dword [ebp - 0x150]
add esp, 4
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x158], 0xf
lea ecx, [ebp - 0x88]
cmova eax, dword [ebp - 0x16c]
push eax
push 0x3f
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::_Locinfo::constructor_int__char_const__]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 9
mov esi, 0x431530
call dword [sym.imp.MSVCP140.dll_public:_char_const____thiscall_std::_Locinfo::_Getname_void_const]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x404991
test cl, cl
je 0x40498d
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x404991
add eax, 2
add esi, 2
test cl, cl
jne 0x404971
xor eax, eax
jmp 0x404996
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4049a3
mov byte [ebp - 0x141], 1
jmp 0x4049ee
push 0
push dword [ebp - 0x150]
lea eax, [ebp - 0x88]
push 0x3f
push eax
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Locimp::_Makeloc_class_std::_Locinfo_const___int__class_std::locale::_Locimp___class_std::locale_const__]
mov eax, dword [ebp - 0x150]
add esp, 0x10
mov dword [eax + 0x10], 0x3f
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x158], 0xf
mov ecx, dword [ebp - 0x150]
cmova eax, dword [ebp - 0x16c]
push eax
lea ecx, [ecx + 0x18]
call dword [sym.imp.MSVCP140.dll_public:_class_std::_Yarn_char_____thiscall_std::_Yarn_char_::operator_char_const__]
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::_Locinfo::destructor_void_]
cmp byte [ebp - 0x141], 0
mov byte [ebp - 4], 7
je 0x404a2b
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x404a20
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push str.bad_locale_name
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xruntime_error_char_const__]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x158]
cmp ecx, 0xf
jbe 0x404a6b
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404a61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404a61
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0xf
mov byte [ebp - 0x16c], 0
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x174]
mov ecx, edi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_ios_char__struct_std::char_traits_char__::imbue_class_std::locale_const__]
mov ecx, dword [ebp - 0x170]
test ecx, ecx
je 0x404abf
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x404abf
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x150]
test ecx, ecx
je 0x404ade
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x404ade
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
movzx eax, word [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
movzx eax, word [ebp - 0x3a]
mov dword [ebp - 0x70], eax
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x6c], eax
movzx eax, word [ebp - 0x34]
mov dword [ebp - 0x68], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x64], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14c]
mov ecx, eax
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x78], 0
movq qword [ebp - 0x80], xmm0
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0x90], 0x20000000
mov dword [ebp - 0x8c], 0x20000004
mov dword [ebp - 0x88], 0x20000008
mov dword [ebp - 0x84], 0x2000000c
mov dword [ebp - 0x80], 0x20000010
mov dword [ebp - 0x7c], 0x20000014
jbe 0x404b64
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
sub esp, 8
mov dword [ebp - 0x58], eax
mov eax, esp
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x78], 0xc0000018
mov byte [ebp - 4], 6
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x54]
push 0x24
push str.:04:02:02_:02::02::02_
mov dword [eax], 7
call fcn.00409940
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 0xf
lea ecx, [ebp - 0x140]
push dword [ebp - 0x44]
cmova edx, dword [ebp - 0x54]
call fcn.00409b30
add esp, 0x14
mov ecx, eax
push 0x4081b0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x13c]
call fcn.00407090
test eax, eax
jne 0x404bf0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x404c28
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404c1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d06
push ecx
push edx
call fcn.00412050
add esp, 8
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x144], eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xf0], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x404ca8
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x100]
cmp dword [eax], ecx
jne 0x404ca8
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x120]
mov dword [eax], ecx
mov eax, dword [ebp - 0x110]
mov dword [eax], edx
cmp byte [ebp - 0xf4], 0
je 0x404cbc
lea ecx, [ebp - 0x13c]
call fcn.00407090
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x404d16
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404d0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404d0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412050
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412042
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret