Function at 0x4974a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5ac433
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x28], esi
je 0x4974e6
push str.XGSP
mov ecx, eax
call fcn.004db9f0
mov ebx, eax
jmp 0x4974e8
xor ebx, ebx
push 3
push 3
push 1
push str.select__from__sys_param_
mov ecx, ebx
mov dword [esp + 0x38], 0xffffffff
call fcn.004dba80
cmp eax, esi
jne 0x497527
cmp ebx, esi
je 0x497512
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp]
mov byte [esp + 0x28], 2
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.server
call sub.MFC42.DLL_CString::CString_3
call fcn.004ea100
add esp, 4
mov ecx, ebx
mov dword [ebp], eax
mov byte [ebp + 4], 0
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x497704
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x14]
push ecx
push str.item_name
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov edx, dword [esp + 0x14]
push str.client_port
push edx
call edi
add esp, 8
test eax, eax
jne 0x4975c2
lea eax, [ebp + 0x28]
mov ecx, ebx
push eax
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
jmp 0x4976ee
mov ecx, dword [esp + 0x14]
push str.web_port
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4975ea
lea edx, [ebp + 0x24]
mov ecx, ebx
push edx
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
jmp 0x4976ee
mov eax, dword [esp + 0x14]
push str.write_log
push eax
call edi
add esp, 8
test eax, eax
jne 0x49761d
lea ecx, [esp + 0x1c]
push ecx
push str.item_value
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp dword [esp + 0x1c], esi
setne dl
mov byte [ebp + 0x2c], dl
jmp 0x4976ee
mov eax, dword [esp + 0x14]
push str.log_path
push eax
call edi
add esp, 8
test eax, eax
jne 0x497674
lea ecx, [esp + 0x10]
push ecx
push str.item_value
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
mov eax, dword [ebp + 0x30]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea100
add esp, 4
mov dword [ebp + 0x30], eax
jmp 0x4976ee
mov eax, dword [esp + 0x14]
push str.bill_path
push eax
call edi
add esp, 8
test eax, eax
jne 0x4976ee
lea ecx, [esp + 0x10]
push ecx
push str.item_value
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, esi
je 0x4976ee
cmp byte [eax + ecx - 1], 0x5c
je 0x4976be
push 0x5c
lea ecx, [esp + 0x14]
call fcn.005942a0
mov eax, dword [ebp + 0x34]
push eax
call sub.MFC42.DLL_operatordelete
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea100
add esp, 4
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x497589
mov al, byte [ebp + 0x2c]
test al, al
je 0x4977e1
mov eax, dword [ebp + 0x30]
cmp byte [eax], 0
jne 0x49774b
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x30]
mov byte [esp + 0x28], 3
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
add eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [esp + 0x18]
mov dword [ebp + 0x30], 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 + 0x30]
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 + 0x30]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4977d1
mov byte [edx + ecx], 0x5c
mov edx, dword [ebp + 0x30]
mov byte [edx + ecx + 1], 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
xor esi, esi
cmp ebx, esi
je 0x4977ed
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret