Function at 0x4cfb50
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 0x5b1fad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
jmp 0x4cfb7a
mov eax, dword [ebp + 8]
mov esi, 0x61d2dc
lea ebx, [eax + 0x28]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfbab
test cl, cl
je 0x4cfba7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfbab
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfb87
xor eax, eax
jmp 0x4cfbb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x10
jne 0x4cfcff
mov ecx, dword [0x637770]
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, 0x61d2d8
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, 0x61d2d8
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 [0x637770]
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 [0x637770]
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.005945f0
mov cl, byte [esi + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005945f0
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 0x4cfd8a
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, 0x61d2d4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfdb5
test cl, cl
je 0x4cfdb1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfdb5
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfd91
xor eax, eax
jmp 0x4cfdba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfe21
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 0x4d0976
mov esi, str.hack1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfe4c
test cl, cl
je 0x4cfe48
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfe4c
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfe28
xor eax, eax
jmp 0x4cfe51
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfe71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637770]
mov edi, str.hack1_success
mov dword [ecx + 0x2a4], eax
jmp 0x4d092b
mov esi, str.hack2
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfe9c
test cl, cl
je 0x4cfe98
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfe9c
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfe78
xor eax, eax
jmp 0x4cfea1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cfec1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637770]
mov edi, str.hack2_success
mov dword [ecx + 0x2a8], eax
jmp 0x4d092b
mov esi, str.hack3
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cfeec
test cl, cl
je 0x4cfee8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cfeec
add eax, 2
add esi, 2
test cl, cl
jne 0x4cfec8
xor eax, eax
jmp 0x4cfef1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cff11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637770]
mov edi, str.hack3_success
mov dword [ecx + 0x2ac], eax
jmp 0x4d092b
mov esi, str.hack4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cff3c
test cl, cl
je 0x4cff38
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cff3c
add eax, 2
add esi, 2
test cl, cl
jne 0x4cff18
xor eax, eax
jmp 0x4cff41
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cff5b
call fcn.0044c540
mov byte [eax + 0x218], 1
mov edi, str.hack4_success
jmp 0x4d0950
mov esi, str.sql_exec
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cff86
test cl, cl
je 0x4cff82
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cff86
add eax, 2
add esi, 2
test cl, cl
jne 0x4cff62
xor eax, eax
jmp 0x4cff8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d001b
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 0x4d0011
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d0011
mov ecx, dword [0x637770]
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 0x4cffdc
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 0x4d0976
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x4d0976
mov edi, str.sql_exec_fail_for_param_error.
jmp 0x4d092b
mov esi, str.sql_rs
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0046
test cl, cl
je 0x4d0042
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0046
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0022
xor eax, eax
jmp 0x4d004b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d03bd
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 0x4d03b3
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d03b3
mov eax, dword [0x637770]
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 0x4d00d3
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 0x4d039c
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4d00f5
push 0
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
jmp 0x4d00f7
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 0x4d0116
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 0x4d0151
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 0x4d0399
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
mov byte [ecx], 0
jle 0x4d01d5
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 0x4d019c
mov edi, 0x61d1c8
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 0x4d0160
mov edi, 0x61d1c0
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 0x4d023b
cmp byte [ecx], 0x30
je 0x4d023b
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 0x4d0242
mov dword [ebp - 0x10], 0xf4240
test eax, eax
jne 0x4d024d
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 0x4d038d
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4d0276
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, eax
jge 0x4d028e
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
inc esi
mov dword [ebp - 0x14], esi
jmp 0x4d037d
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x10]
cmp esi, edx
jl 0x4d02a6
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
jmp 0x4d037d
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4d032c
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 0x4d02fb
mov edi, 0x61d1c8
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 0x4d02af
mov edi, 0x61d1b8
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 0x4d038d
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4d0273
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 0x4d0976
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x4d0976
mov edi, str.sql_rs_fail
jmp 0x4d092b
mov esi, 0x61d1a4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d03e8
test cl, cl
je 0x4d03e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d03e8
add eax, 2
add esi, 2
test cl, cl
jne 0x4d03c4
xor eax, eax
jmp 0x4d03ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0461
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.004ec530
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 0x4d0976
mov esi, 0x61d17c
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d048c
test cl, cl
je 0x4d0488
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d048c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0468
xor eax, eax
jmp 0x4d0491
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d060e
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.004ec530
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 0x4d05a7
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 0x4d0546
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 0x4d0571
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 0x4d0500
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x4d05d9
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.005949aa
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 0x4d0976
mov esi, str.getfile
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0639
test cl, cl
je 0x4d0635
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0639
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0615
xor eax, eax
jmp 0x4d063e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d06cd
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 0x4d0680
mov ecx, dword [ebp - 0x10]
push 0x8000
push ecx
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile_1
mov esi, eax
jmp 0x4d0682
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 0x38]
cmp eax, 0x8000
jle 0x4d0698
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 0x4d06bc
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 0x4d0976
mov esi, str.reg_set
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d06f8
test cl, cl
je 0x4d06f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d06f8
add eax, 2
add esi, 2
test cl, cl
jne 0x4d06d4
xor eax, eax
jmp 0x4d06fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d07db
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 0x4d07d1
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 0x4d07c7
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d078d
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 0x4d07a9
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 0x4d07bd
mov edi, str.reg_set_success.
jmp 0x4d0950
mov edi, str.reg_set_fail_for_RegSetValueEx_error.
jmp 0x4d092b
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
jmp 0x4d0950
mov edi, str.reg_set_fail_for_RegOpenKeyEx_return_error.
jmp 0x4d092b
mov esi, str.reg_get
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0806
test cl, cl
je 0x4d0802
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0806
add eax, 2
add esi, 2
test cl, cl
jne 0x4d07e2
xor eax, eax
jmp 0x4d080b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d0970
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 0x4d094b
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 0x4d0926
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 0x4d08e4
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 0x4d08dd
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 0x4d0976
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d092b
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 0x4d091f
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 0x4d0976
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d0950
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 0x4d0976
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 0x4d0976
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4d097f
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