Function at 0x402a20
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x407333
mov eax, dword fs:[0]
push eax
sub esp, 0x7d0
mov eax, dword [0x40d028]
xor eax, esp
mov dword [esp + 0x7c8], eax
push ebx
push esi
push edi
mov eax, dword [0x40d028]
xor eax, esp
push eax
lea eax, [esp + 0x7e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
push 0x108
lea edx, [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x150], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
lea eax, [esp + 0x17c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x174], ebx
lea edi, [esp + 0x3c]
mov dword [esp + 0x7e8], ebx
call fcn.004036f0
test eax, eax
jne 0x402b0d
mov ecx, dword [esi + 0x98]
add ecx, 0x66
lea edi, [esi + 0x94]
push ecx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov edx, dword [edi]
push ebx
push ebx
push edx
call sub.mfc90u.dll_AfxMessageBox
mov eax, dword [esp + 0x144]
cmp eax, ebx
je 0x402b06
cmp dword [0x40d794], 1
push eax
jne 0x402b01
call sub.Rockey7_d.dll_RY7PE_Close
xor eax, eax
jmp 0x402fe4
call sub.Dongle_d.dll_Dongle_Close
xor eax, eax
jmp 0x402fe4
lea edi, [esp + 0x3c]
call fcn.00403680
test eax, eax
jne 0x402b5d
mov eax, dword [esi + 0x98]
add eax, 0x68
lea edi, [esi + 0x94]
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov ecx, dword [edi]
push ebx
push ebx
push ecx
call sub.mfc90u.dll_AfxMessageBox
mov eax, dword [esp + 0x144]
cmp eax, ebx
je 0x402b06
cmp dword [0x40d794], 1
push eax
jne 0x402b01
call sub.Rockey7_d.dll_RY7PE_Close
xor eax, eax
jmp 0x402fe4
push 0x100000
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x402ba9
mov edx, dword [esi + 0x98]
add edx, 0x77
lea edi, [esi + 0x94]
push edx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [edi]
push ebx
push ebx
push eax
call sub.mfc90u.dll_AfxMessageBox
lea esi, [esp + 0x3c]
call fcn.00403640
call fcn.00403640
xor eax, eax
jmp 0x402fe4
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0x200
lea ecx, [esp + 0x5d8]
push ebx
push ecx
mov byte [esp + 0x7f4], 2
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea edx, [esp + 0x5d8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x5d4]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, ebx
jl 0x402c46
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7ec], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7e8], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, 0x40b2b4
call fcn.004034f0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7ec], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x7e8], 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0x100
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x2c]
lea ecx, [esp + 0x28]
lea edi, [esp + 0x3c]
call fcn.004037a0
test eax, eax
je 0x402d87
cmp word [esp + 0x28], 3
jne 0x402d39
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
push edx
mov edi, 0x40b2b8
call fcn.004034f0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7ec], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x38]
mov byte [esp + 0x7e8], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
movzx ecx, word [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edx, ebx
lea edi, [esp + 0x3c]
call fcn.00403750
test eax, eax
je 0x402e03
movzx eax, word [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00402900
add esp, 0xc
test eax, eax
je 0x402e7a
mov eax, dword [esp + 0x1c]
add eax, 4
cmp eax, 0x114
mov dword [esp + 0x1c], eax
jl 0x402c9c
mov eax, dword [esp + 0x20]
push eax
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x148]
add esp, 4
mov edi, 1
test eax, eax
je 0x402ec7
push eax
cmp dword [0x40d794], edi
jne 0x402eb7
call sub.Rockey7_d.dll_RY7PE_Close
jmp 0x402ebc
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x98]
lea esi, [eax + 0x94]
add edx, 0x79
push edx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esi]
push 0
push 0
push eax
call sub.mfc90u.dll_AfxMessageBox
mov ecx, dword [esp + 0x20]
push ecx
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402b06
cmp dword [0x40d794], 1
push eax
jne 0x402b01
call sub.Rockey7_d.dll_RY7PE_Close
xor eax, eax
jmp 0x402fe4
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x98]
lea esi, [eax + 0x94]
add edx, 0x7b
push edx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push eax
call sub.mfc90u.dll_AfxMessageBox
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea esi, [esp + 0x3c]
call fcn.00403640
xor eax, eax
jmp 0x402fe4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x98]
add ecx, 0x7d
lea esi, [eax + 0x94]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push edx
jmp 0x402e3e
call sub.Dongle_d.dll_Dongle_Close
mov dword [esp + 0x144], 0
push 0x100
lea ecx, [esp + 0x4d8]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea edx, [esp + 0x3d8]
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push eax
push 0x80
lea ecx, [esp + 0x3dc]
push ecx
lea edx, [esp + 0x4e0]
push edx
push str.DeviceSerial
push str.Camera01
call esi
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x3d4]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x100
lea ecx, [esp + 0x4d8]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea edx, [esp + 0x3d8]
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x80
lea ecx, [esp + 0x3dc]
push ecx
lea edx, [esp + 0x4e0]
push edx
push str.DeviceSerial
push str.Camera02
call esi
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3d4]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402fe2
push eax
cmp dword [0x40d794], edi
jne 0x402fdd
call sub.Rockey7_d.dll_RY7PE_Close
jmp 0x402fe2
call sub.Dongle_d.dll_Dongle_Close
mov eax, edi
mov ecx, dword [esp + 0x7e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c8]
xor ecx, esp
call fcn.00404120
mov esp, ebp
pop ebp
ret 4