Function at 0x435430
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a1f21
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x240]
mov esi, ecx
mov ebp, dword [esi + 0xc34]
push 0x104
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebp
call fcn.00482280
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0x2c]
push edx
push str.57600_115200_230400_460800_921600
push str.BaudRates
push 0x4ecc0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4354d0
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x238], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4354f2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401890
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x4355c9
push 0xffffffffffffffff
lea ebp, [esi + 0x334]
push 0
mov ecx, ebp
call fcn.0045e6e9
mov edx, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x435552
push edx
lea ecx, [esp + 0x18]
call fcn.00401560
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
push 0x2c
push edx
call fcn.00483813
mov edi, eax
add esp, 8
test edi, edi
je 0x43558c
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.0045ea35
lea ebx, [edi + 2]
push 0x2c
push ebx
call fcn.00483813
mov edi, eax
add esp, 8
test edi, edi
jne 0x435567
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.0045ea35
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00481c27
add esp, 8
test eax, eax
jl 0x4356b6
cmp eax, dword [edi - 8]
jg 0x4356b6
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
push 0x1c200
push str.Baud_rate
push str.Serial_port
call edi
push ebp
push 0
push str.Port
push str.Serial_port
mov dword [esi + 0x2d0], eax
call edi
push ebp
push 1
push str.CanSelect
push 0x4ecc0c
mov dword [esi + 0x2d4], eax
call edi
push ebp
push 1
push str.CanEdit
push 0x4ecc0c
mov dword [esi + 0xc54], eax
call edi
push ebp
push 0x195
push str.LangNVItemID
push 0x4ecc94
mov dword [esi + 0xc58], eax
call edi
push ebp
push 0
push str.enable
push str.ChipDspMap
mov word [esi + 0x2d8], ax
call edi
push ebp
push 1
push str.AutoGenerateSN
push 0x4a8ddc
mov dword [esi + 0xc10], eax
call edi
neg eax
sbb eax, eax
inc eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esi + 0xc14], eax
mov dword [esi + 0x2cc], eax
call fcn.0042cb40
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x23c], 1
call fcn.004340a0
test eax, eax
jne 0x435778
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4356c0
push 0x80004005
call fcn.00401150
push 0x80070057
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str.Load_XML_configure_file___s__failed__n
push edx
mov byte [esp + 0x244], 2
call fcn.00401ce0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push esi
call fcn.00401ae0
lea eax, [esi - 0x10]
mov byte [esp + 0x238], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43574d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4357cc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4357a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4357c7
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 1
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004820da
add esp, 0x228
ret 4