Function at 0x41a130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4454d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.00412b10
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x1fe1]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [esi], 0x4466b0
mov dword [esi + 0x1f5c], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x15c
mov dword [esi + 0x30d2], edi
mov byte [ebp - 4], 2
call fcn.004394a2
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x41a1be
mov ecx, ebx
call fcn.00401480
mov ecx, dword [ebp + 0x10]
add ecx, 0x64
push ecx
push eax
mov ecx, edi
call fcn.00435990
mov dword [esi + 0x10], eax
jmp 0x41a1fb
xor eax, eax
mov dword [esi + 0x10], eax
jmp 0x41a1fb
mov edi, dword [ebp + 8]
push edi
lea eax, [esi + 0x1ff9]
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x10]
push edi
push 0xa
lea ebx, [esi + 0x1f65]
push ebx
push 0x455794
push 0x4557a0
push 0x4557a8
mov dword [esi + 0x30ca], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esi + 0x30d6]
push edx
push ebx
call fcn.00435c70
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
push edi
push 1
push 0x4557b0
push 0x4557b8
call ebx
push edi
push 1
push 0x4557c0
push 0x4557d0
mov dword [esi + 0x14], eax
call ebx
push edi
push 0xfa
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x15c]
push eax
push 0x4557d8
push 0x4557dc
push 0x4557e0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi + 0x1f78]
push ecx
lea edx, [ebp - 0x15c]
push edx
call fcn.00418b80
add esp, 8
push edi
push 0
movzx eax, ax
push 0x4557e8
push 0x4557f0
mov dword [esi + 0x1f74], eax
call ebx
dec eax
cmp eax, 0xffffffff
sete cl
mov byte [esi + 0x1fdc], cl
mov ecx, dword [esi + 0x1f5c]
mov dword [esi + 0x1f70], eax
cmp eax, dword [ecx + 0x2c]
jl 0x41a2ed
mov dword [esi + 0x1f70], 0
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x41a2fe
mov dword [esi + 0x1f70], 0xff
push 0x4557f8
push 0x4557fc
mov byte [esi + 0x1f64], 1
mov dword [esi + 0x1f60], 0
call fcn.0043a547
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41a372
push ebx
push 1
lea eax, [esi + 0x1c]
push 8
push eax
call fcn.0043a2fc
add esp, 0x10
test eax, eax
je 0x41a369
lea eax, [esi + 0x1c]
jmp 0x41a344
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x1f60]
push ebx
push 1
add eax, 8
inc edx
push 8
push eax
mov dword [esi + 0x1f60], edx
mov dword [ebp + 0x10], eax
call fcn.0043a2fc
add esp, 0x10
test eax, eax
jne 0x41a341
push ebx
call fcn.0043a1c2
add esp, 4
push 0xaf2
mov byte [esi + 0x20fd], 1
mov byte [esi + 0x2102], 1
call fcn.004394a2
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esi + 0x211b], eax
jne 0x41a3b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44999c
lea edx, [ebp - 0x2c]
mov ecx, str.Ethertcp_new_KissFrame
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
call fcn.0043a7c9
push 0x70a
call fcn.004394a2
add esp, 4
cmp eax, ebx
mov dword [esi + 0x2117], eax
jne 0x41a3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x44999c
lea eax, [ebp - 0x24]
mov ecx, str.Ethertcp_new_SERIAL_STR
push eax
mov dword [ebp - 0x20], ecx
call fcn.0043a7c9
push edi
mov ecx, esi
mov byte [esi + 0x211f], 0
mov dword [esi + 0x2120], ebx
mov word [esi + 0x2124], bx
call fcn.00419fd0
test al, al
je 0x41a494
push 0xc08
mov byte [ebp - 4], 5
call fcn.004394a2
mov ecx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
cmp ecx, ebx
mov byte [ebp - 4], 6
je 0x41a445
mov edx, dword [esi + 0x20fe]
push edx
push esi
call fcn.00419a60
mov dword [esi + 0x30ce], eax
jmp 0x41a485
xor eax, eax
mov dword [esi + 0x30ce], eax
jmp 0x41a485
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 1
call fcn.00435b50
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc