Function at 0x41b46d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a53
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.004046f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0050eb3f
mov byte [ebp - 4], 1
push 0x104
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.004e8440
add esp, 0xc
push 0
push 0x40
mov ecx, dword [ebp - 0x188]
add ecx, 0x496
push ecx
lea ecx, [ebp - 0x68]
call fcn.0050ec76
test eax, eax
jne 0x41b549
mov edx, dword [ebp - 0x188]
add edx, 0x496
push edx
push str.Cant_find__s_file__please_check.
lea eax, [ebp - 0x170]
push eax
call fcn.004e894d
add esp, 0xc
push 0
push 0x54b320
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.0050a80e
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0050ec33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050ce61
mov eax, dword [ebp - 0x174]
jmp 0x41b7ec
push 0x40
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.004e8440
add esp, 0xc
mov eax, dword [ebp - 0x188]
add eax, 0x28e
push eax
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push 0x56bf64
push str.DBSTR
push 0x54b330
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x54]
test edx, edx
jne 0x41b5c4
cmp dword [0x56c138], 0x97a
jne 0x41b5a7
push str.SM2256XT_DataBase
lea eax, [ebp - 0x54]
push eax
call fcn.004e86a0
add esp, 8
jmp 0x41b5c4
cmp dword [0x56c138], 0x979
jne 0x41b5c4
push str.SM2258XT_DataBase
lea ecx, [ebp - 0x54]
push ecx
call fcn.004e86a0
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x68]
call fcn.0050ee59
test eax, eax
je 0x41b73c
lea ecx, [ebp - 0x10]
call fcn.00426b20
test eax, eax
je 0x41b5e6
jmp 0x41b5c4
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.005026f1
cmp eax, 0xffffffff
je 0x41b737
push 0x54b360
lea ecx, [ebp - 0x10]
call fcn.005026f1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x10]
call fcn.00502601
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.0050cf9a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.0050ce61
push 0x54b364
lea ecx, [ebp - 0x10]
call fcn.005026f1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.004079e0
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.00502585
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.0050cf9a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x17c]
call fcn.0050ce61
lea ecx, [ebp - 0x10]
call fcn.00404710
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, 1
test edx, edx
je 0x41b6e8
mov dword [ebp - 0x19c], 0
jmp 0x41b6ff
mov eax, dword [ebp + 8]
push eax
push 0x54b368
call fcn.0040b860
add esp, 8
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x68]
call fcn.0050efa6
mov dword [ebp - 0x180], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0050ec33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050ce61
mov eax, dword [ebp - 0x180]
jmp 0x41b7ec
jmp 0x41b5c4
cmp dword [0x56c138], 0x97a
jne 0x41b76f
mov ecx, dword [ebp - 0x188]
add ecx, 0x496
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.004e894d
add esp, 0x10
jmp 0x41b7a0
cmp dword [0x56c138], 0x979
jne 0x41b7a0
mov ecx, dword [ebp - 0x188]
add ecx, 0x496
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.004e894d
add esp, 0x10
push 0
push 0x54b404
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.0050a80e
lea ecx, [ebp - 0x68]
call fcn.0050efa6
mov dword [ebp - 0x184], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0050ec33
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050ce61
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4