Function at 0x4405c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b8721
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
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 + 0xc98]
push 0x104
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebp
call fcn.00494750
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0x2c]
push edx
push str.57600_115200_230400_460800_921600
push str.BaudRates
push 0x507d5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x440660
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 0x440682
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401860
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x440759
push 0xffffffffffffffff
lea ebp, [esi + 0x350]
push 0
mov ecx, ebp
call fcn.0046e6d1
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 0x4406e2
push edx
lea ecx, [esp + 0x18]
call fcn.00401510
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
push 0x2c
push edx
call fcn.004952a4
mov edi, eax
add esp, 8
test edi, edi
je 0x44071c
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.0046ea1d
lea ebx, [edi + 2]
push 0x2c
push ebx
call fcn.004952a4
mov edi, eax
add esp, 8
test edi, edi
jne 0x4406f7
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.0046ea1d
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004940f4
add esp, 8
test eax, eax
jl 0x440846
cmp eax, dword [edi - 8]
jg 0x440846
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 0x507d24
call edi
push ebp
push 0
push str.Port
push 0x507d24
mov dword [esi + 0x2e8], eax
call edi
push ebp
push 1
push str.CanSelect
push 0x507d5c
mov dword [esi + 0x2ec], eax
call edi
push ebp
push 1
push str.CanEdit
push 0x507d5c
mov dword [esi + 0xcbc], eax
call edi
push ebp
push 0x195
push str.LangNVItemID
push 0x507de4
mov dword [esi + 0xcc0], eax
call edi
push ebp
push 0
push str.enable
push str.ChipDspMap
mov word [esi + 0x2f0], ax
call edi
push ebp
push 1
push str.AutoGenerateSN
push 0x4bfe30
mov dword [esi + 0xc64], eax
call edi
neg eax
sbb eax, eax
inc eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esi + 0xc68], eax
mov dword [esi + 0x2cc], eax
call fcn.00434620
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x23c], 1
call fcn.0043fcb0
test eax, eax
jne 0x440908
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x440850
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.00401cb0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
push esi
call fcn.00401ab0
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 0x4408b5
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 0x4408dd
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 0x440904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x44095c
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 0x440930
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 0x440957
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.004945a7
add esp, 0x228
ret 4