Function at 0x4cf7b0
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 0x5b1c6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
jmp 0x4cf7da
mov eax, dword [ebp + 8]
mov esi, 0x61d27c
lea ebx, [eax + 0x28]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cf80b
test cl, cl
je 0x4cf807
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cf80b
add eax, 2
add esi, 2
test cl, cl
jne 0x4cf7e7
xor eax, eax
jmp 0x4cf810
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x10
jne 0x4cf95f
mov ecx, dword [0x637760]
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, 0x61d278
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, 0x61d278
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 [0x637760]
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 [0x637760]
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.005942a0
mov cl, byte [esi + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005942a0
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 0x4cf9ea
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, 0x61d274
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfa15
test cl, cl
je 0x4cfa11
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfa15
add eax, 2
add esi, 2
test cl, cl
jne 0x4cf9f1
xor eax, eax
jmp 0x4cfa1a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfa81
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 0x4d05d6
mov esi, str.hack1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfaac
test cl, cl
je 0x4cfaa8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfaac
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfa88
xor eax, eax
jmp 0x4cfab1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfad1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637760]
mov edi, str.hack1_success
mov dword [ecx + 0x2a4], eax
jmp 0x4d058b
mov esi, str.hack2
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfafc
test cl, cl
je 0x4cfaf8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfafc
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfad8
xor eax, eax
jmp 0x4cfb01
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfb21
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637760]
mov edi, str.hack2_success
mov dword [ecx + 0x2a8], eax
jmp 0x4d058b
mov esi, str.hack3
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfb4c
test cl, cl
je 0x4cfb48
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfb4c
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfb28
xor eax, eax
jmp 0x4cfb51
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfb71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637760]
mov edi, str.hack3_success
mov dword [ecx + 0x2ac], eax
jmp 0x4d058b
mov esi, str.hack4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfb9c
test cl, cl
je 0x4cfb98
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfb9c
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfb78
xor eax, eax
jmp 0x4cfba1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfbbb
call fcn.0044c4d0
mov byte [eax + 0x218], 1
mov edi, str.hack4_success
jmp 0x4d05b0
mov esi, str.sql_exec
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfbe6
test cl, cl
je 0x4cfbe2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfbe6
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfbc2
xor eax, eax
jmp 0x4cfbeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfc7b
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 0x4cfc71
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4cfc71
mov ecx, dword [0x637760]
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 0x4cfc3c
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 0x4d05d6
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x4d05d6
mov edi, str.sql_exec_fail_for_param_error.
jmp 0x4d058b
mov esi, str.sql_rs
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfca6
test cl, cl
je 0x4cfca2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfca6
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfc82
xor eax, eax
jmp 0x4cfcab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d001d
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 0x4d0013
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d0013
mov eax, dword [0x637760]
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 0x4cfd33
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 0x4cfffc
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4cfd55
push 0
mov ecx, eax
call fcn.004db9f0
mov esi, eax
jmp 0x4cfd57
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 0x4cfd76
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 0x4cfdb1
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 0x4cfff9
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
mov byte [ecx], 0
jle 0x4cfe35
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 0x4cfdfc
mov edi, 0x61d168
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 0x4cfdc0
mov edi, 0x61d160
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 0x4cfe9b
cmp byte [ecx], 0x30
je 0x4cfe9b
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 0x4cfea2
mov dword [ebp - 0x10], 0xf4240
test eax, eax
jne 0x4cfead
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 0x4cffed
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4cfed6
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, eax
jge 0x4cfeee
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
inc esi
mov dword [ebp - 0x14], esi
jmp 0x4cffdd
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x10]
cmp esi, edx
jl 0x4cff06
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
jmp 0x4cffdd
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4cff8c
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 0x4cff5b
mov edi, 0x61d168
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 0x4cff0f
mov edi, 0x61d158
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 0x4cffed
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4cfed3
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 0x4d05d6
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x4d05d6
mov edi, str.sql_rs_fail
jmp 0x4d058b
mov esi, 0x61d144
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0048
test cl, cl
je 0x4d0044
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0048
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0024
xor eax, eax
jmp 0x4d004d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d00c1
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.004ec170
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 0x4d05d6
mov esi, 0x61d11c
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d00ec
test cl, cl
je 0x4d00e8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d00ec
add eax, 2
add esi, 2
test cl, cl
jne 0x4d00c8
xor eax, eax
jmp 0x4d00f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d026e
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.004ec170
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 0x4d0207
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 0x4d01a6
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 0x4d01d1
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 0x4d0160
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x4d0239
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.0059465a
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 0x4d05d6
mov esi, str.getfile
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0299
test cl, cl
je 0x4d0295
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0299
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0275
xor eax, eax
jmp 0x4d029e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d032d
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 0x4d02e0
mov ecx, dword [ebp - 0x10]
push 0x8000
push ecx
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile_1
mov esi, eax
jmp 0x4d02e2
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 0x38]
cmp eax, 0x8000
jle 0x4d02f8
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 0x4d031c
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 0x4d05d6
mov esi, str.reg_set
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0358
test cl, cl
je 0x4d0354
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0358
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0334
xor eax, eax
jmp 0x4d035d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d043b
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 0x4d0431
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 0x4d0427
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d03ed
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 0x4d0409
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 0x4d041d
mov edi, str.reg_set_success.
jmp 0x4d05b0
mov edi, str.reg_set_fail_for_RegSetValueEx_error.
jmp 0x4d058b
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
jmp 0x4d05b0
mov edi, str.reg_set_fail_for_RegOpenKeyEx_return_error.
jmp 0x4d058b
mov esi, str.reg_get
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0466
test cl, cl
je 0x4d0462
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0466
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0442
xor eax, eax
jmp 0x4d046b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d05d0
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 0x4d05ab
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 0x4d0586
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 0x4d0544
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 0x4d053d
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 0x4d05d6
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d058b
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 0x4d057f
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 0x4d05d6
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d05b0
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 0x4d05d6
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 0x4d05d6
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4d05df
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