Function at 0x420981
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
mov dword [ebp - 0x188], ecx
lea ecx, [ebp - 0x10]
call fcn.004048b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d003f
mov byte [ebp - 4], 1
push 0x104
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x40
mov ecx, dword [ebp - 0x188]
add ecx, 0x6ed
push ecx
lea ecx, [ebp - 0x68]
call fcn.004d0176
test eax, eax
jne 0x420a5d
mov edx, dword [ebp - 0x188]
add edx, 0x6ed
push edx
push str.Cant_find__s_file__please_check.
lea eax, [ebp - 0x170]
push eax
call fcn.004aa1dd
add esp, 0xc
push 0
push 0x50bb2c
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.004cbd0e
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d0133
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004ce361
mov eax, dword [ebp - 0x174]
jmp 0x420d00
push 0x40
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.004a9cd0
add esp, 0xc
mov eax, dword [ebp - 0x188]
add eax, 0x4e5
push eax
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push 0x5282e8
push str.DBSTR
push 0x50bb3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x54]
test edx, edx
jne 0x420ad8
cmp dword [0x5284f8], 0x97a
jne 0x420abb
push str.SM2256XT_DataBase
lea eax, [ebp - 0x54]
push eax
call fcn.004a9f30
add esp, 8
jmp 0x420ad8
cmp dword [0x5284f8], 0x979
jne 0x420ad8
push str.SM2258XT_DataBase
lea ecx, [ebp - 0x54]
push ecx
call fcn.004a9f30
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x68]
call fcn.004d0359
test eax, eax
je 0x420c50
lea ecx, [ebp - 0x10]
call fcn.0040acf0
test eax, eax
je 0x420afa
jmp 0x420ad8
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c3bf1
cmp eax, 0xffffffff
je 0x420c4b
push 0x50bb6c
lea ecx, [ebp - 0x10]
call fcn.004c3bf1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x10]
call fcn.004c3b01
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x190]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004ce49a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.004ce361
push 0x50bb70
lea ecx, [ebp - 0x10]
call fcn.004c3bf1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.00408320
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004c3a85
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x198]
push eax
lea ecx, [ebp - 0x10]
call fcn.004ce49a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x17c]
call fcn.004ce361
lea ecx, [ebp - 0x10]
call fcn.004048d0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, 1
test edx, edx
je 0x420bfc
mov dword [ebp - 0x19c], 0
jmp 0x420c13
mov eax, dword [ebp + 8]
push eax
push 0x50bb74
call fcn.00410eb0
add esp, 8
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x68]
call fcn.004d04a6
mov dword [ebp - 0x180], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d0133
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004ce361
mov eax, dword [ebp - 0x180]
jmp 0x420d00
jmp 0x420ad8
cmp dword [0x5284f8], 0x97a
jne 0x420c83
mov ecx, dword [ebp - 0x188]
add ecx, 0x6ed
push ecx
lea edx, [ebp - 0x54]
push edx
push str.Its_not_SM2256_dramless_flash_database._r_nCant_find____s___string_at__s_file.
lea eax, [ebp - 0x170]
push eax
call fcn.004aa1dd
add esp, 0x10
jmp 0x420cb4
cmp dword [0x5284f8], 0x979
jne 0x420cb4
mov ecx, dword [ebp - 0x188]
add ecx, 0x6ed
push ecx
lea edx, [ebp - 0x54]
push edx
push str.Its_not_SM2258XT_flash_database._r_nCant_find____s___string_at__s_file.
lea eax, [ebp - 0x170]
push eax
call fcn.004aa1dd
add esp, 0x10
push 0
push 0x50bc10
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.004cbd0e
lea ecx, [ebp - 0x68]
call fcn.004d04a6
mov dword [ebp - 0x184], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d0133
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004ce361
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4