Function at 0x40c8ce
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d7c7
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x43d2ac]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 5
pop edi
lea ecx, [esp + 0x108]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0x108]
xor esi, esi
push eax
mov dword [esp + 0x34c], esi
call fcn.0040c1a8
neg eax
sbb al, al
pop ecx
inc al
mov byte [esp + 0x17], al
lea eax, [esp + 0x124]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40c99f
or dword [esp + 0x348], 0xffffffff
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.00418cca
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.AdobeLogTransport2
lea eax, [esp + 0x128]
push eax
call edi
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 1
call fcn.0040ed32
mov esi, 0x412750
push esi
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x350], 2
call fcn.00413720
push eax
mov byte [esp + 0x34c], 3
call fcn.00413980
mov bl, al
neg bl
pop ecx
sbb bl, bl
lea ecx, [esp + 0x48]
inc bl
mov byte [esp + 0x348], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x348], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x40ca82
push 0
lea eax, [esp + 0x128]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x40ca82
push 5
pop esi
or dword [esp + 0x348], 0xffffffff
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x40c97b
push str.LogTransport2.cfg
lea eax, [esp + 0x128]
push eax
call edi
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x48]
lea ecx, [esp + 0xec]
mov byte [esp + 0x348], 4
call fcn.0040ed32
lea ecx, [esp + 0x48]
mov byte [esp + 0x348], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x2c]
call fcn.00413720
push eax
mov byte [esp + 0x34c], 7
call fcn.00413980
pop ecx
lea ecx, [esp + 0x24]
mov bl, al
mov byte [esp + 0x348], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x17], 0
je 0x40cdd0
test bl, bl
je 0x40cd2c
cmp dword [esp + 0x120], 0x10
mov eax, dword [esp + 0x10c]
jae 0x40cb2d
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x348], 8
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [esp + 0xd4]
push 0x43319c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
push eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xdc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x34c], 9
call dword [0x42e180]
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x34]
push eax
call fcn.0040ce17
cmp dword [eax + 0x18], 8
jb 0x40cbdf
mov eax, dword [eax + 4]
jmp 0x40cbe2
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [esp + 0xac]
push ecx
push ebx
push eax
call esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x34]
push eax
call fcn.0040ce17
cmp dword [eax + 0x18], 8
jb 0x40cc43
mov eax, dword [eax + 4]
jmp 0x40cc46
add eax, 4
lea ecx, [esp + 0x64]
push ecx
push ebx
push eax
call esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x34]
push eax
call fcn.0040ce17
cmp dword [eax + 0x18], 8
jb 0x40cc9e
mov eax, dword [eax + 4]
jmp 0x40cca1
add eax, 4
lea ecx, [esp + 0x88]
push ecx
push ebx
push eax
call esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xb4]
push eax
call esi
cmp eax, 1
je 0x40cce5
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
cmp eax, 1
jne 0x40ccfc
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.0040c7b0
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xec]
push eax
call dword [0x42e180]
lea ecx, [esp + 0xd0]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x348], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40cdf9
push esi
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xd8]
call fcn.00413720
mov edi, eax
push esi
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x350], 0xa
call fcn.00413720
push edi
push eax
mov byte [esp + 0x350], 0xb
call fcn.00413d40
pop ecx
pop ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x348], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x2c]
call fcn.00413720
push eax
mov byte [esp + 0x34c], 0xc
call fcn.00413980
pop ecx
lea ecx, [esp + 0x24]
mov bl, al
mov byte [esp + 0x348], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x40cdf9
jmp 0x40cde2
test bl, bl
jne 0x40cde2
lea eax, [esp + 0xec]
push eax
call fcn.0040c475
pop ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xec]
push eax
call dword [0x42e180]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0xec]
mov byte [esp + 0x348], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x1c]
jmp 0x40ca66