Function at 0x512ab0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5bb0bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], edi
je 0x512afa
push str.XGSP
mov ecx, eax
call fcn.004dcfd0
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x512b00
mov dword [esp + 0x20], edi
mov esi, edi
push 3
push 3
push 1
push str.select__from__sys_param_
mov ecx, esi
mov dword [esp + 0x44], 0xffffffff
call fcn.004dd060
cmp eax, edi
jne 0x512b3f
cmp esi, edi
je 0x512b2a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 4]
mov bl, 2
push eax
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_operatordelete
mov ecx, esp
mov dword [esp + 0x20], esp
push str.server
call sub.MFC42.DLL_CString::CString_3
call fcn.004eb710
add esp, 4
mov ecx, esi
mov dword [ebp + 4], eax
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x51312d
lea ecx, [esp + 0x14]
push ecx
push str.item_name
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.write_log
push edx
call edi
add esp, 8
test eax, eax
jne 0x512bde
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x18]
test eax, eax
setne cl
mov byte [ebp + 0x18], cl
jmp 0x513117
mov edx, dword [esp + 0x14]
push str.log_path
push edx
call edi
add esp, 8
test eax, eax
jne 0x512c34
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004eb710
add esp, 4
mov dword [ebp + 0x1c], eax
jmp 0x513117
mov eax, dword [esp + 0x14]
push str.auto_active_pid
push eax
call edi
add esp, 8
test eax, eax
jne 0x512c69
lea ecx, [esp + 0x18]
push ecx
push str.item_value
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x18]
test eax, eax
setne dl
mov byte [ebp + 0x20], dl
jmp 0x513117
mov eax, dword [esp + 0x14]
push str.password_protect
push eax
call edi
add esp, 8
test eax, eax
jne 0x512c9e
lea ecx, [esp + 0x18]
push ecx
push str.item_value
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x18]
test eax, eax
setne dl
mov byte [ebp + 0x21], dl
jmp 0x513117
mov eax, dword [esp + 0x14]
push str.notify_email
push eax
call edi
add esp, 8
test eax, eax
jne 0x512d08
lea edi, [ebp + 0x24]
mov ecx, esi
push edi
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::MakeUpper
push str.HTTP:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
setge cl
mov byte [ebp + 0x22], cl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
jmp 0x513117
mov edx, dword [esp + 0x14]
push str.notify_smtp_addr
push edx
call edi
add esp, 8
test eax, eax
jne 0x512d37
lea edi, [ebp + 0x2c]
mov ecx, esi
push edi
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
jmp 0x513117
mov eax, dword [esp + 0x14]
push str.notify_smtp_password
push eax
call edi
add esp, 8
test eax, eax
jne 0x512d66
lea edi, [ebp + 0x30]
mov ecx, esi
push edi
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
jmp 0x513117
mov ecx, dword [esp + 0x14]
push str.notify_smtp_server
push ecx
call edi
add esp, 8
test eax, eax
jne 0x512d95
lea edi, [ebp + 0x28]
mov ecx, esi
push edi
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
jmp 0x513117
mov edx, dword [esp + 0x14]
push str.notify_event
push edx
call edi
add esp, 8
test eax, eax
jne 0x513117
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x611e74
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x34], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e70
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x35], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e68
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 6
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x36], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e6c
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x37], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e64
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x38], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e60
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x39], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e5c
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x3a], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e58
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 0xb
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x3b], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e54
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x3c], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e50
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 0xd
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x3d], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x611e4c
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0xe
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004ecb90
add esp, 4
mov byte [ebp + 0x3e], al
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.gf_v
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 0xf
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004eca90
add esp, 4
mov dword [ebp + 0x40], eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.pf_v
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x40], 0x10
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004eca90
add esp, 4
mov dword [ebp + 0x44], eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.gfd_v
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 0x11
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004eca90
add esp, 4
mov dword [ebp + 0x48], eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.pfd_v
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov byte [esp + 0x3c], 0x12
push edx
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004eca90
add esp, 4
mov dword [ebp + 0x4c], eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.cf_v
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 0x13
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], bl
call fcn.004eca90
add esp, 8
mov dword [ebp + 0x50], eax
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x512b92
mov al, byte [ebp + 0x18]
test al, al
je 0x5131dc
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
je 0x5131dc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x1c]
mov byte [esp + 0x34], 0x14
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
add eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x1c], eax
push 0xa
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x5131cb
mov byte [ecx + edx], 0x5c
mov edx, dword [ebp + 0x1c]
mov byte [ecx + edx + 1], 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
test esi, esi
je 0x5131e8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret