Function at 0x407050
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x60a4]
mov eax, 0x60a4
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51eb47
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x60a0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp + 0x2050]
push eax
call fcn.00487b00
mov dword [ebp - 4], ebx
lea ecx, [ebp]
push ecx
call fcn.00487b00
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x407597
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4070c6
sub eax, edx
sar eax, 1
je 0x407597
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407597
cmp esi, ebx
je 0x407597
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4070f7
sub eax, edx
sar eax, 1
je 0x407597
push str._koko__CCheckUpdatesDlg::CreateUplaodXML_start__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push ebx
lea eax, [ebp + 0x2050]
call fcn.00487be0
test eax, eax
je 0x407155
push str.Load_XML_fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x20], 0xd
push 0x5814b0
lea edx, [ebp - 0x20]
push edx
call fcn.004fd5a3
mov edx, esi
lea ecx, [ebp]
call fcn.004881e0
test eax, eax
je 0x40718b
push esi
push str._koko__Fail_to_CreateXML_to___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x1c], 0xd
push 0x5814b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004fd5a3
push 0x800
push ebx
lea ecx, [ebp + 0x58a0]
push ecx
call fcn.004fd670
add esp, 0xc
push ebx
push 0x400
lea ebx, [ebp + 0x58a0]
mov edx, str.AMPV_GeneralSerialNumber
lea ecx, [ebp + 0x2050]
call fcn.00487e80
test eax, eax
je 0x4071e9
push 0x3ff
push str.NULL
push 0x400
mov edx, ebx
push edx
call fcn.004fa71b
push str.Fail_to_get_General_Serial_Number_from_RDS.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
lea edx, [ebp + 0x58a0]
mov ecx, str.AMPV_GeneralSerialNumber
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x407212
push str.Fail_to_set_General_Serial_Number_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0x800
push 0
lea eax, [ebp + 0x58a0]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ebx, [ebp + 0x58a0]
mov edx, str.AMPV_MDL
lea ecx, [ebp + 0x2050]
call fcn.00487e80
test eax, eax
je 0x407272
push 0x3ff
push str.NULL
push 0x400
mov ecx, ebx
push ecx
call fcn.004fa71b
push str.Fail_to_get_MDL_from_RDS.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
lea edx, [ebp + 0x58a0]
mov ecx, str.AMPV_MDL
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x40729b
push str.Fail_to_set_General_MDL_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0x800
push 0
lea edx, [ebp + 0x58a0]
push edx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ebx, [ebp + 0x58a0]
mov edx, str.AMPV_SystemFirmwareVersion
lea ecx, [ebp + 0x2050]
call fcn.00487e80
test eax, eax
je 0x4072fb
push 0x3ff
push str.NULL
push 0x400
mov eax, ebx
push eax
call fcn.004fa71b
push str.Fail_to_get_System_Firmware_Version_from_RDS.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
lea edx, [ebp + 0x58a0]
mov ecx, str.AMPV_SystemFirmwareVersion
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x407324
push str.Fail_to_set_General__System_Firmware_Version_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0x800
push 0
lea ecx, [ebp + 0x58a0]
push ecx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ebx, [ebp + 0x58a0]
mov edx, str.AMPV_SystemInstalledDate
lea ecx, [ebp + 0x2050]
call fcn.00487e80
test eax, eax
je 0x407384
push 0x3ff
push str.NULL
push 0x400
mov edx, ebx
push edx
call fcn.004fa71b
push str.Fail_to_get_System_Installed_Date_from_RDS.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
lea edx, [ebp + 0x58a0]
mov ecx, str.AMPV_SystemInstalledDate
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x4073ad
push str.Fail_to_set_General__System_Installed_Date_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0x800
push 0
lea eax, [ebp + 0x58a0]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ebx, [ebp + 0x58a0]
mov edx, str.AMPV_CurrentVersion
lea ecx, [ebp + 0x2050]
call fcn.00487e80
test eax, eax
je 0x40740d
push 0x3ff
push str.NULL
push 0x400
mov ecx, ebx
push ecx
call fcn.004fa71b
push str.Fail_to_get_Current_Version_from_RDS.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
lea edx, [ebp + 0x58a0]
mov ecx, str.AMPV_CurrentVersion
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x407436
push str.Fail_to_set_General__Current_Version_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov edx, str.SBI_W
mov ecx, str.AMPV_FormatType
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x40745e
push str.Fail_to_set_General__Current_Version_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0x800
push 0
lea edx, [ebp + 0x48a0]
push edx
call fcn.004fd670
add esp, 0xc
push 0x400
lea eax, [ebp + 0x48a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407540
push 0x5c
lea ecx, [ebp + 0x48a0]
push ecx
call fcn.004fa6eb
add esp, 8
test eax, eax
je 0x4074aa
mov word [eax], 0
push 0x800
push 0
lea edx, [ebp + 0x50a0]
push edx
call fcn.004fd670
push str.CD.ver
lea eax, [ebp + 0x48a0]
push eax
push 0x535a74
lea edx, [ebp + 0x50a0]
call fcn.00404380
add esp, 0x18
lea edx, [ebp + 0x50a0]
call fcn.00493960
test al, al
je 0x407540
lea ecx, [ebp + 0x50a0]
push ecx
push 0x400
lea edx, [ebp + 0x40a0]
push edx
push 0x535a4c
push str.version
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x407540
lea edx, [ebp + 0x40a0]
mov ecx, str.AMPV_HostVersion
lea eax, [ebp]
call fcn.00488340
test eax, eax
je 0x407540
push str.Fail_to_set_General__Current_Version_from_ampv_result.xml___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea eax, [ebp]
call fcn.00488360
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.00487b80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2050]
push ecx
call fcn.00487b80
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60a0]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x60a4
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
lea eax, [ebp]
push eax
call fcn.00487b80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2050]
push ecx
call fcn.00487b80
mov eax, 0x57
jmp 0x407572