Function at 0x420d1c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9202
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.004d3f3f
mov byte [ebp - 4], 1
push 0x104
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.004adbd0
add esp, 0xc
push 0
push 0x40
mov ecx, dword [ebp - 0x188]
add ecx, 0x6ed
push ecx
lea ecx, [ebp - 0x68]
call fcn.004d4076
test eax, eax
jne 0x420df8
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.004ae0dd
add esp, 0xc
push 0
push 0x50fbb0
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.004cfc0e
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d4033
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d2261
mov eax, dword [ebp - 0x174]
jmp 0x42109b
push 0x40
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x188]
add eax, 0x4e5
push eax
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push 0x52d028
push str.DBSTR
push 0x50fbc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x54]
test edx, edx
jne 0x420e73
cmp dword [0x52d238], 0x97a
jne 0x420e56
push str.SM2256XT_DataBase
lea eax, [ebp - 0x54]
push eax
call fcn.004ade30
add esp, 8
jmp 0x420e73
cmp dword [0x52d238], 0x979
jne 0x420e73
push str.SM2258XT_DataBase
lea ecx, [ebp - 0x54]
push ecx
call fcn.004ade30
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x68]
call fcn.004d4259
test eax, eax
je 0x420feb
lea ecx, [ebp - 0x10]
call fcn.0040ad70
test eax, eax
je 0x420e95
jmp 0x420e73
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c7af1
cmp eax, 0xffffffff
je 0x420fe6
push 0x50fbf0
lea ecx, [ebp - 0x10]
call fcn.004c7af1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x10]
call fcn.004c7a01
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.004d239a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.004d2261
push 0x50fbf4
lea ecx, [ebp - 0x10]
call fcn.004c7af1
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.004c7985
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.004d239a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x17c]
call fcn.004d2261
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 0x420f97
mov dword [ebp - 0x19c], 0
jmp 0x420fae
mov eax, dword [ebp + 8]
push eax
push 0x50fbf8
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x68]
call fcn.004d43a6
mov dword [ebp - 0x180], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d4033
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d2261
mov eax, dword [ebp - 0x180]
jmp 0x42109b
jmp 0x420e73
cmp dword [0x52d238], 0x97a
jne 0x42101e
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.004ae0dd
add esp, 0x10
jmp 0x42104f
cmp dword [0x52d238], 0x979
jne 0x42104f
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.004ae0dd
add esp, 0x10
push 0
push 0x50fc94
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.004cfc0e
lea ecx, [ebp - 0x68]
call fcn.004d43a6
mov dword [ebp - 0x184], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004d4033
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d2261
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4