Function at 0x4cfe20
Capabilities:
Check for time delay via gettickcount
Execute command
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b033d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
jmp 0x4cfe4a
mov eax, dword [ebp + 8]
mov esi, 0x61b578
lea ebx, [eax + 0x28]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfe7b
test cl, cl
je 0x4cfe77
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfe7b
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfe57
xor eax, eax
jmp 0x4cfe80
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x10
jne 0x4cffcf
mov ecx, dword [0x635400]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 4]
add ecx, 0x4c
call sub.MFC42.DLL_CString::Right
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov edi, 0x61b574
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.SOFTWAREETermProxy
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x38]
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::constructor_char___bool_
push str.software_version
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call sym.ETermProxy.exe_public:_char____thiscall_CRWReg::ReadString_char__
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x61b574
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x635400]
mov ecx, dword [eax + 0xc]
xor eax, eax
mov edx, dword [ecx + 4]
or ecx, 0xffffffff
mov edi, dword [edx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::destructor_void_
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x635400]
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 4]
add ecx, 0x4c
call sub.MFC42.DLL_CString::Right
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
mov al, byte [esi + 3]
push eax
call fcn.005928d0
mov cl, byte [esi + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005928d0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x94]
push edx
push eax
call sub.md5lib.dll_MD5Encode
add esi, 5
push 0x20
lea ecx, [ebp - 0x94]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4d005a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x61b570
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0085
test cl, cl
je 0x4d0081
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0085
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0061
xor eax, eax
jmp 0x4d008a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d00f1
push 1
push str.SOFTWAREETermProxy
lea ecx, [ebp - 0x24]
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::constructor_char___bool_
push str.software_version
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sym.ETermProxy.exe_public:_char____thiscall_CRWReg::ReadString_char__
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [ebp - 0x10]
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 + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sym.ETermProxy.exe_public:_void___thiscall_CRWReg::destructor_void_
jmp 0x4d0c46
mov esi, str.hack1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d011c
test cl, cl
je 0x4d0118
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d011c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d00f8
xor eax, eax
jmp 0x4d0121
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0141
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x635400]
mov edi, str.hack1_success
mov dword [ecx + 0x2a4], eax
jmp 0x4d0bfb
mov esi, str.hack2
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d016c
test cl, cl
je 0x4d0168
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d016c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0148
xor eax, eax
jmp 0x4d0171
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0191
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x635400]
mov edi, str.hack2_success
mov dword [ecx + 0x2a8], eax
jmp 0x4d0bfb
mov esi, str.hack3
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d01bc
test cl, cl
je 0x4d01b8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d01bc
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0198
xor eax, eax
jmp 0x4d01c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d01e1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x635400]
mov edi, str.hack3_success
mov dword [ecx + 0x2ac], eax
jmp 0x4d0bfb
mov esi, str.hack4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d020c
test cl, cl
je 0x4d0208
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d020c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d01e8
xor eax, eax
jmp 0x4d0211
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d022b
call fcn.0044c560
mov byte [eax + 0x218], 1
mov edi, str.hack4_success
jmp 0x4d0c20
mov esi, str.sql_exec
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0256
test cl, cl
je 0x4d0252
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0256
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0232
xor eax, eax
jmp 0x4d025b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d02eb
lea edx, [ebx + 0x10]
or ecx, 0xffffffff
mov edi, edx
lea esi, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4d02e1
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d02e1
mov ecx, dword [0x635400]
push esi
lea eax, [ebp - 0x10]
push edx
mov ecx, dword [ecx + 8]
push eax
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov edx, dword [ebp - 0x10]
mov edi, str.sql_exec_success.
test edx, edx
jne 0x4d02ac
mov edi, str.sql_exec_fail_for_return_null.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 4], 1
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
je 0x4d0c46
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x4d0c46
mov edi, str.sql_exec_fail_for_param_error.
jmp 0x4d0bfb
mov esi, str.sql_rs
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0316
test cl, cl
je 0x4d0312
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0316
add eax, 2
add esi, 2
test cl, cl
jne 0x4d02f2
xor eax, eax
jmp 0x4d031b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d068d
lea eax, [ebx + 0x10]
lea ecx, [ebx + 0x18]
lea edx, [ebx + 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x30]
cmp ecx, 1
jbe 0x4d0683
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d0683
mov eax, dword [0x635400]
push esi
push edx
lea edx, [ebp - 0x30]
mov ecx, dword [eax + 8]
push edx
call sym.ETermProxy.exe_public:_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4_____thiscall_CDBConnCollect::Execute_char___char_const__
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 4
test edx, edx
jne 0x4d03a3
mov edi, str.sql_rs_fail_for_return_null
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 + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4d066c
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4d03c5
push 0
mov ecx, eax
call fcn.004dc060
mov esi, eax
jmp 0x4d03c7
xor esi, esi
push ecx
mov ecx, dword [ebp - 0x30]
mov eax, esp
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4d03e6
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov ecx, esi
call sym.ETermProxy.exe_public:_void___thiscall_CAdoRecordSet::SetRecordset_class__com_ptr_t_class__com_IIID_struct_ADODB::_Recordset__struct___s_GUID__GUID_00000556_0000_0010_8000_00aa006d2ea4___
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetFieldsCount_void_
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4d0421
mov edi, str.sql_rs_fail_for_fields_count_is_0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4d0669
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
mov byte [ecx], 0
jle 0x4d04a5
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push ebx
push edx
call sym.ETermProxy.exe_public:_class_CString___thiscall_CAdoRecordSet::GetFieldName_long_int_
test ebx, ebx
jle 0x4d046c
mov edi, 0x61b464
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
inc ebx
cmp ebx, eax
jl 0x4d0430
mov edi, 0x61b45c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x2c], eax
je 0x4d050b
cmp byte [ecx], 0x30
je 0x4d050b
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call edi
mov esi, eax
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x10], esi
call edi
add esp, 8
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4d0512
mov dword [ebp - 0x10], 0xf4240
test eax, eax
jne 0x4d051d
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x4d065d
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4d0546
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, eax
jge 0x4d055e
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
inc esi
mov dword [ebp - 0x14], esi
jmp 0x4d064d
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x10]
cmp esi, edx
jl 0x4d0576
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
jmp 0x4d064d
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4d05fc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
push ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_long_int__class_CString__
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::TrimRight
test ebx, ebx
jle 0x4d05cb
mov edi, 0x61b464
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
jl 0x4d057f
mov edi, 0x61b454
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x3ff
cmp ecx, 0x8000
jae 0x4d065d
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4d0543
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x30]
test edx, edx
mov byte [ebp - 4], 1
je 0x4d0c46
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x4d0c46
mov edi, str.sql_rs_fail
jmp 0x4d0bfb
mov esi, 0x61b440
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d06b8
test cl, cl
je 0x4d06b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d06b8
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0694
xor eax, eax
jmp 0x4d06bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0731
add ebx, 0x20
lea ecx, [ebp - 0x10]
push ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x14]
mov bl, 7
push 1
push eax
mov byte [ebp - 4], bl
call fcn.004ec960
add esp, 8
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
push ecx
push str.DIR_
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
push eax
mov eax, dword [ebp + 8]
push str.system_return_value_is__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4d0c46
mov esi, 0x61b418
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d075c
test cl, cl
je 0x4d0758
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d075c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0738
xor eax, eax
jmp 0x4d0761
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d08de
add ebx, 0x20
lea ecx, [ebp - 0x10]
push ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x18]
push 1
push eax
mov byte [ebp - 4], 9
call fcn.004ec960
add esp, 8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
push ecx
push str.DIR_
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 0
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
mov byte [edx], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4d0877
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [ebp - 0x54]
push 0x10
lea ecx, [ebp - 0x54]
mov ebx, eax
call dword [edx + 0x40]
test eax, eax
je 0x4d0816
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x54]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push ecx
push str.__s__r_n
push edx
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
jmp 0x4d0841
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push ecx
push str._s_r_n
push edx
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x4d07d0
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x4d08a9
mov edi, str.dir_fail_for_no_file_found.
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, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
call fcn.00592c8a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4d0c46
mov esi, str.getfile
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0909
test cl, cl
je 0x4d0905
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0909
add eax, 2
add esi, 2
test cl, cl
jne 0x4d08e5
xor eax, eax
jmp 0x4d090e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d099d
add ebx, 0x20
lea ecx, [ebp - 0x10]
push ebx
call sub.MFC42.DLL_CString::CString_3
mov bl, 0xf
push 0x10
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
mov byte [ebp - 4], 0x10
je 0x4d0950
mov ecx, dword [ebp - 0x10]
push 0x8000
push ecx
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile_1
mov esi, eax
jmp 0x4d0952
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 0x38]
cmp eax, 0x8000
jle 0x4d0968
mov eax, 0x8000
mov edi, dword [ebp + 8]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x3c]
mov byte [eax + edi], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
test esi, esi
je 0x4d098c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4d0c46
mov esi, str.reg_set
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d09c8
test cl, cl
je 0x4d09c4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d09c8
add eax, 2
add esi, 2
test cl, cl
jne 0x4d09a4
xor eax, eax
jmp 0x4d09cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0aab
lea edi, [ebx + 0x20]
add ebx, 0x100
push ebx
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0xf
push 0
push edi
lea ebx, [esi + 0x110]
push reloc.OLEAUT32.dll_SysReAllocString
add esi, 0x12c
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d0aa1
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
push ecx
push edx
push eax
push 0x20006
push eax
push eax
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d0a97
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d0a5d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
mov eax, dword [ebp - 0x14]
push ebx
push eax
jmp 0x4d0a79
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
push 4
push ecx
push 4
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4d0a8d
mov edi, str.reg_set_success.
jmp 0x4d0c20
mov edi, str.reg_set_fail_for_RegSetValueEx_error.
jmp 0x4d0bfb
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
jmp 0x4d0c20
mov edi, str.reg_set_fail_for_RegOpenKeyEx_return_error.
jmp 0x4d0bfb
mov esi, str.reg_get
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0ad6
test cl, cl
je 0x4d0ad2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0ad6
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0ab2
xor eax, eax
jmp 0x4d0adb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0c40
lea eax, [ebx + 0x100]
lea esi, [ebx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
add ebx, 0x110
push ecx
push 0xf
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d0c1b
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push 0x20019
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d0bf6
mov ecx, 0xff
lea edi, [ebp - 0x493]
mov byte [ebp - 0x494], al
mov dword [ebp - 0x18], 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d0bb4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x494]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d0bad
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x494]
push edx
push str.reg_get:__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x4d0c46
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d0bfb
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d0bef
mov ecx, dword [ebp - 0x494]
mov edx, dword [ebp + 8]
push ecx
push str.reg_get:__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x4d0c46
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d0c20
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4d0c46
mov edi, str.reg_get_fail_for_RegOpenKeyEx_return_error.
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 + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4d0c46
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4d0c4f
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret