Function at 0x4d0dd0
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 0x5b48fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
jmp 0x4d0dfa
mov eax, dword [ebp + 8]
mov esi, 0x6204ec
lea ebx, [eax + 0x28]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0e2b
test cl, cl
je 0x4d0e27
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0e2b
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0e07
xor eax, eax
jmp 0x4d0e30
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x10
jne 0x4d0f7f
mov ecx, dword [0x63ac10]
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, 0x6204e8
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, 0x6204e8
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 [0x63ac10]
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 [0x63ac10]
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.00596ca0
mov cl, byte [esi + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00596ca0
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 0x4d100a
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, 0x6204e4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1035
test cl, cl
je 0x4d1031
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1035
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1011
xor eax, eax
jmp 0x4d103a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d10a1
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 0x4d1bf6
mov esi, str.hack1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d10cc
test cl, cl
je 0x4d10c8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d10cc
add eax, 2
add esi, 2
test cl, cl
jne 0x4d10a8
xor eax, eax
jmp 0x4d10d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d10f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac10]
mov edi, str.hack1_success
mov dword [ecx + 0x2a4], eax
jmp 0x4d1bab
mov esi, str.hack2
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d111c
test cl, cl
je 0x4d1118
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d111c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d10f8
xor eax, eax
jmp 0x4d1121
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1141
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac10]
mov edi, str.hack2_success
mov dword [ecx + 0x2a8], eax
jmp 0x4d1bab
mov esi, str.hack3
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d116c
test cl, cl
je 0x4d1168
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d116c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1148
xor eax, eax
jmp 0x4d1171
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1191
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac10]
mov edi, str.hack3_success
mov dword [ecx + 0x2ac], eax
jmp 0x4d1bab
mov esi, str.hack4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d11bc
test cl, cl
je 0x4d11b8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d11bc
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1198
xor eax, eax
jmp 0x4d11c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d11db
call fcn.0044c8d0
mov byte [eax + 0x218], 1
mov edi, str.hack4_success
jmp 0x4d1bd0
mov esi, str.sql_exec
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1206
test cl, cl
je 0x4d1202
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1206
add eax, 2
add esi, 2
test cl, cl
jne 0x4d11e2
xor eax, eax
jmp 0x4d120b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d129b
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 0x4d1291
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d1291
mov ecx, dword [0x63ac10]
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 0x4d125c
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 0x4d1bf6
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x4d1bf6
mov edi, str.sql_exec_fail_for_param_error.
jmp 0x4d1bab
mov esi, str.sql_rs
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d12c6
test cl, cl
je 0x4d12c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d12c6
add eax, 2
add esi, 2
test cl, cl
jne 0x4d12a2
xor eax, eax
jmp 0x4d12cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d163d
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 0x4d1633
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d1633
mov eax, dword [0x63ac10]
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 0x4d1353
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 0x4d161c
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4d1375
push 0
mov ecx, eax
call fcn.004dd020
mov esi, eax
jmp 0x4d1377
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 0x4d1396
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 0x4d13d1
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 0x4d1619
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
mov byte [ecx], 0
jle 0x4d1455
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 0x4d141c
mov edi, 0x6203d8
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 0x4d13e0
mov edi, 0x6203d0
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 0x4d14bb
cmp byte [ecx], 0x30
je 0x4d14bb
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 0x4d14c2
mov dword [ebp - 0x10], 0xf4240
test eax, eax
jne 0x4d14cd
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 0x4d160d
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4d14f6
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, eax
jge 0x4d150e
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
inc esi
mov dword [ebp - 0x14], esi
jmp 0x4d15fd
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x10]
cmp esi, edx
jl 0x4d1526
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
jmp 0x4d15fd
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4d15ac
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 0x4d157b
mov edi, 0x6203d8
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 0x4d152f
mov edi, 0x6203c8
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 0x4d160d
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4d14f3
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 0x4d1bf6
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x4d1bf6
mov edi, str.sql_rs_fail
jmp 0x4d1bab
mov esi, 0x6203b4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1668
test cl, cl
je 0x4d1664
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1668
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1644
xor eax, eax
jmp 0x4d166d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d16e1
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.004ed7a0
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 0x4d1bf6
mov esi, 0x62038c
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d170c
test cl, cl
je 0x4d1708
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d170c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d16e8
xor eax, eax
jmp 0x4d1711
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d188e
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.004ed7a0
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 0x4d1827
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 0x4d17c6
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 0x4d17f1
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 0x4d1780
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x4d1859
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.0059705a
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 0x4d1bf6
mov esi, str.getfile
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d18b9
test cl, cl
je 0x4d18b5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d18b9
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1895
xor eax, eax
jmp 0x4d18be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d194d
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 0x4d1900
mov ecx, dword [ebp - 0x10]
push 0x8000
push ecx
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile_1
mov esi, eax
jmp 0x4d1902
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 0x38]
cmp eax, 0x8000
jle 0x4d1918
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 0x4d193c
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 0x4d1bf6
mov esi, str.reg_set
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1978
test cl, cl
je 0x4d1974
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1978
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1954
xor eax, eax
jmp 0x4d197d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1a5b
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 0x4d1a51
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 0x4d1a47
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d1a0d
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 0x4d1a29
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 0x4d1a3d
mov edi, str.reg_set_success.
jmp 0x4d1bd0
mov edi, str.reg_set_fail_for_RegSetValueEx_error.
jmp 0x4d1bab
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
jmp 0x4d1bd0
mov edi, str.reg_set_fail_for_RegOpenKeyEx_return_error.
jmp 0x4d1bab
mov esi, str.reg_get
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1a86
test cl, cl
je 0x4d1a82
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1a86
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1a62
xor eax, eax
jmp 0x4d1a8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1bf0
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 0x4d1bcb
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 0x4d1ba6
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 0x4d1b64
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 0x4d1b5d
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 0x4d1bf6
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d1bab
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 0x4d1b9f
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 0x4d1bf6
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d1bd0
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 0x4d1bf6
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 0x4d1bf6
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4d1bff
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