Function at 0x4d0d60
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 0x5b4acd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
jmp 0x4d0d8a
mov eax, dword [ebp + 8]
mov esi, 0x6204e8
lea ebx, [eax + 0x28]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0dbb
test cl, cl
je 0x4d0db7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0dbb
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0d97
xor eax, eax
jmp 0x4d0dc0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x10
jne 0x4d0f0f
mov ecx, dword [0x63ac20]
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, 0x6204e4
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, 0x6204e4
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 [0x63ac20]
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 [0x63ac20]
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.00596ed0
mov cl, byte [esi + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00596ed0
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 0x4d0f9a
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, 0x6204e0
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d0fc5
test cl, cl
je 0x4d0fc1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d0fc5
add eax, 2
add esi, 2
test cl, cl
jne 0x4d0fa1
xor eax, eax
jmp 0x4d0fca
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1031
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 0x4d1b86
mov esi, str.hack1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d105c
test cl, cl
je 0x4d1058
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d105c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1038
xor eax, eax
jmp 0x4d1061
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1081
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac20]
mov edi, str.hack1_success
mov dword [ecx + 0x2a4], eax
jmp 0x4d1b3b
mov esi, str.hack2
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d10ac
test cl, cl
je 0x4d10a8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d10ac
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1088
xor eax, eax
jmp 0x4d10b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d10d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac20]
mov edi, str.hack2_success
mov dword [ecx + 0x2a8], eax
jmp 0x4d1b3b
mov esi, str.hack3
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d10fc
test cl, cl
je 0x4d10f8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d10fc
add eax, 2
add esi, 2
test cl, cl
jne 0x4d10d8
xor eax, eax
jmp 0x4d1101
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1121
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x63ac20]
mov edi, str.hack3_success
mov dword [ecx + 0x2ac], eax
jmp 0x4d1b3b
mov esi, str.hack4
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d114c
test cl, cl
je 0x4d1148
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d114c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1128
xor eax, eax
jmp 0x4d1151
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d116b
call fcn.0044c870
mov byte [eax + 0x218], 1
mov edi, str.hack4_success
jmp 0x4d1b60
mov esi, str.sql_exec
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1196
test cl, cl
je 0x4d1192
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1196
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1172
xor eax, eax
jmp 0x4d119b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d122b
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 0x4d1221
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d1221
mov ecx, dword [0x63ac20]
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 0x4d11ec
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 0x4d1b86
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x4d1b86
mov edi, str.sql_exec_fail_for_param_error.
jmp 0x4d1b3b
mov esi, str.sql_rs
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1256
test cl, cl
je 0x4d1252
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1256
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1232
xor eax, eax
jmp 0x4d125b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d15cd
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 0x4d15c3
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jbe 0x4d15c3
mov eax, dword [0x63ac20]
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 0x4d12e3
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 0x4d15ac
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4d1305
push 0
mov ecx, eax
call fcn.004dcfd0
mov esi, eax
jmp 0x4d1307
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 0x4d1326
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 0x4d1361
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 0x4d15a9
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
mov byte [ecx], 0
jle 0x4d13e5
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 0x4d13ac
mov edi, 0x6203d4
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 0x4d1370
mov edi, 0x6203cc
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 0x4d144b
cmp byte [ecx], 0x30
je 0x4d144b
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 0x4d1452
mov dword [ebp - 0x10], 0xf4240
test eax, eax
jne 0x4d145d
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 0x4d159d
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx - 1]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x4d1486
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp esi, eax
jge 0x4d149e
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
inc esi
mov dword [ebp - 0x14], esi
jmp 0x4d158d
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x10]
cmp esi, edx
jl 0x4d14b6
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
jmp 0x4d158d
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
jle 0x4d153c
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 0x4d150b
mov edi, 0x6203d4
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 0x4d14bf
mov edi, 0x6203c4
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 0x4d159d
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x4d1483
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 0x4d1b86
mov eax, dword [edx]
push edx
call dword [eax + 8]
jmp 0x4d1b86
mov edi, str.sql_rs_fail
jmp 0x4d1b3b
mov esi, 0x6203b0
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d15f8
test cl, cl
je 0x4d15f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d15f8
add eax, 2
add esi, 2
test cl, cl
jne 0x4d15d4
xor eax, eax
jmp 0x4d15fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1671
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.004ed780
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 0x4d1b86
mov esi, 0x620388
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d169c
test cl, cl
je 0x4d1698
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d169c
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1678
xor eax, eax
jmp 0x4d16a1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d181e
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.004ed780
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 0x4d17b7
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 0x4d1756
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 0x4d1781
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 0x4d1710
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [ebp + 8]
cmp byte [edx], 0
jne 0x4d17e9
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.0059728a
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 0x4d1b86
mov esi, str.getfile
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1849
test cl, cl
je 0x4d1845
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1849
add eax, 2
add esi, 2
test cl, cl
jne 0x4d1825
xor eax, eax
jmp 0x4d184e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d18dd
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 0x4d1890
mov ecx, dword [ebp - 0x10]
push 0x8000
push ecx
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile_1
mov esi, eax
jmp 0x4d1892
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 0x38]
cmp eax, 0x8000
jle 0x4d18a8
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 0x4d18cc
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 0x4d1b86
mov esi, str.reg_set
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1908
test cl, cl
je 0x4d1904
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1908
add eax, 2
add esi, 2
test cl, cl
jne 0x4d18e4
xor eax, eax
jmp 0x4d190d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d19eb
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 0x4d19e1
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 0x4d19d7
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d199d
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 0x4d19b9
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 0x4d19cd
mov edi, str.reg_set_success.
jmp 0x4d1b60
mov edi, str.reg_set_fail_for_RegSetValueEx_error.
jmp 0x4d1b3b
mov edi, str.reg_set_fail_for_RegCreateKeyEx_return_error.
jmp 0x4d1b60
mov edi, str.reg_set_fail_for_RegOpenKeyEx_return_error.
jmp 0x4d1b3b
mov esi, str.reg_get
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d1a16
test cl, cl
je 0x4d1a12
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d1a16
add eax, 2
add esi, 2
test cl, cl
jne 0x4d19f2
xor eax, eax
jmp 0x4d1a1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d1b80
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 0x4d1b5b
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 0x4d1b36
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 0x4d1af4
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 0x4d1aed
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 0x4d1b86
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d1b3b
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 0x4d1b2f
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 0x4d1b86
mov edi, str.reg_get_fail_for_RegQueryValueEx_return_error.
jmp 0x4d1b60
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 0x4d1b86
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 0x4d1b86
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4d1b8f
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