Function at 0x51e420
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5b7cd3
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
test eax, eax
mov dword [esp + 0x28], 0
je 0x51e468
push str.XGSP
mov ecx, eax
call fcn.004dc2a0
mov ebx, eax
jmp 0x51e46a
xor ebx, ebx
push 3
push 3
or esi, 0xffffffff
push 1
push str.select__from__sys_param_
mov ecx, ebx
mov dword [esp + 0x38], esi
call fcn.004dc330
test eax, eax
jne 0x51e4a8
test ebx, ebx
je 0x51e493
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 + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
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.004eaa10
add esp, 4
mov ecx, ebx
mov dword [ebp], eax
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x51e5d2
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x10]
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 + 0x10]
push str.api_port
push edx
call edi
add esp, 8
test eax, eax
jne 0x51e539
lea eax, [ebp + 0x1c]
mov ecx, ebx
push eax
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
jmp 0x51e5bc
mov ecx, dword [esp + 0x10]
push str.write_log
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51e56b
lea edx, [esp + 0x1c]
mov ecx, ebx
push edx
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x1c]
test eax, eax
setne al
mov byte [ebp + 0x14], al
jmp 0x51e5bc
mov ecx, dword [esp + 0x10]
push str.log_path
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51e5bc
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
push str.item_value
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004eaa10
add esp, 4
mov dword [ebp + 0x18], eax
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 0x51e500
mov al, byte [ebp + 0x14]
test al, al
je 0x51e6ac
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
jne 0x51e615
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
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 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x18]
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 + 0x18], eax
push 0xa
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
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 + 0x18]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x51e69b
mov byte [edx + ecx], 0x5c
mov edx, dword [ebp + 0x18]
mov byte [edx + ecx + 1], 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
mov eax, dword [ebp + 8]
push eax
call sub.MFC42.DLL_operatordelete
push str.http:__eterm2.info_bird.com_IBBD2008_WebService_BaseDataInterface.asmx
call fcn.004ea920
add esp, 8
mov dword [ebp + 8], eax
test ebx, ebx
je 0x51e6d1
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
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