Function at 0x406757
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4f18
call fcn.0040f610
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2728], eax
lea ecx, [ebp - 0x4f0c]
mov dword [ebp - 0x2720], ecx
push 8
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x27f8]
push eax
call fcn.0040b3c0
add esp, 0xc
mov byte [ebp - 0x27f0], 0
lea ecx, [ebp - 0x27f8]
push ecx
call fcn.0040f4c0
add esp, 4
mov dword [ebp - 0x2724], eax
push 0xa
mov edx, dword [ebp - 0x2728]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x2720]
add eax, 0x1c
push eax
call fcn.0040b3c0
add esp, 0xc
push 6
mov ecx, dword [ebp - 0x2728]
add ecx, 0x16
push ecx
mov edx, dword [ebp - 0x2720]
add edx, 0x10
push edx
call fcn.0040b3c0
add esp, 0xc
push 6
mov eax, dword [ebp - 0x2728]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x2720]
add ecx, 0x16
push ecx
call fcn.0040b3c0
add esp, 0xc
mov edx, dword [ebp - 0x2724]
add edx, 0x2710
mov dword [ebp - 0x2730], edx
mov eax, dword [ebp - 0x2730]
push eax
push 0x426478
lea ecx, [ebp - 0x27f8]
push ecx
call fcn.0040baf0
add esp, 0xc
push 8
lea edx, [ebp - 0x27f8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.0040b3c0
add esp, 0xc
mov ecx, dword [ebp - 0x2724]
mov dword [ebp - 0x4f18], ecx
mov edx, dword [ebp - 0x4f18]
sub edx, 0xf6b47
mov dword [ebp - 0x4f18], edx
cmp dword [ebp - 0x4f18], 0xa
ja case.0x4066de.4
mov ecx, dword [ebp - 0x4f18]
xor eax, eax
mov al, byte [ecx + 0x4069fb]
jmp dword [eax*4 + 0x4069e7]
lea edx, [ebp - 0x271c]
mov dword [ebp - 0x4f14], edx
push 0x14
push 0x20
mov eax, dword [ebp - 0x4f14]
push eax
call fcn.0040b360
add esp, 0xc
push 0x426480
push 0x15
lea ecx, [ebp - 0x27f8]
push ecx
push 0x42839c
push str.crid
push str.IDC_01010505
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
lea edx, [ebp - 0x27f8]
push edx
mov eax, dword [ebp - 0x4f14]
push eax
call fcn.0040b3c0
add esp, 0xc
mov dword [ebp - 0x4f10], 0x14
jmp 0x406774
mov dword [ebp - 0x4f10], 0
jmp 0x406774
mov dword [ebp - 0x4f10], 0
jmp 0x406774
mov dword [ebp - 0x4f10], 0
jmp 0x406774
jmp 0x4069e3
cmp dword [ebp - 0x2724], 0xf6b4f
jne 0x4067eb
push 0x4264ac
push 0
push str.plusResult
push 0x4264cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
cmp ecx, 0x270f
jle 0x4067b2
mov word [ebp - 4], 1
mov edx, dword [ebp - 4]
and edx, 0xffff
push edx
push 0x4264d4
lea eax, [ebp - 0x27f8]
push eax
call fcn.0040baf0
add esp, 0xc
push 4
lea ecx, [ebp - 0x27f8]
push ecx
mov edx, dword [ebp - 0x2720]
add edx, 0xc
push edx
call fcn.0040b3c0
add esp, 0xc
cmp dword [ebp - 0x2724], 0xf6b50
je 0x406803
cmp dword [ebp - 0x2724], 0xf6b51
jne 0x406871
push 0x4264dc
push 0
push str.DiyResult
push 0x4264fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0x270f
jle 0x406833
mov word [ebp - 4], 1
mov ecx, dword [ebp - 4]
and ecx, 0xffff
push ecx
push 0x426504
lea edx, [ebp - 0x27f8]
push edx
call fcn.0040baf0
add esp, 0xc
push 4
lea eax, [ebp - 0x27f8]
push eax
mov ecx, dword [ebp - 0x2720]
add ecx, 0xc
push ecx
call fcn.0040b3c0
add esp, 0xc
jmp 0x406926
cmp dword [ebp - 0x2724], 0xf6b47
jne 0x4068f5
push 0x42650c
push 0
push str.OcpPlusResult
push 0x426530
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [ebp - 0x27fc], ax
mov edx, dword [ebp - 0x27fc]
and edx, 0xffff
cmp edx, 0x270f
jle 0x4068b8
mov word [ebp - 0x27fc], 1
mov eax, dword [ebp - 0x27fc]
and eax, 0xffff
push eax
push 0x426538
lea ecx, [ebp - 0x27f8]
push ecx
call fcn.0040baf0
add esp, 0xc
push 4
lea edx, [ebp - 0x27f8]
push edx
mov eax, dword [ebp - 0x2720]
add eax, 0xc
push eax
call fcn.0040b3c0
add esp, 0xc
jmp 0x406926
push 0
push 0x426540
lea ecx, [ebp - 0x27f8]
push ecx
call fcn.0040baf0
add esp, 0xc
push 4
lea edx, [ebp - 0x27f8]
push edx
mov eax, dword [ebp - 0x2720]
add eax, 0xc
push eax
call fcn.0040b3c0
add esp, 0xc
mov ecx, dword [ebp - 0x4f10]
add ecx, 0x3a
mov word [ebp - 0x272c], cx
mov edx, dword [ebp - 0x272c]
and edx, 0xffff
push edx
push 0x426548
lea eax, [ebp - 0x27f8]
push eax
call fcn.0040baf0
add esp, 0xc
push 4
lea ecx, [ebp - 0x27f8]
push ecx
mov edx, dword [ebp - 0x2720]
push edx
call fcn.0040b3c0
add esp, 0xc
push 8
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2720]
add ecx, 4
push ecx
call fcn.0040b3c0
add esp, 0xc
mov edx, dword [ebp - 0x4f10]
push edx
lea eax, [ebp - 0x271c]
push eax
mov ecx, dword [ebp - 0x2720]
add ecx, 0x3a
push ecx
call fcn.0040b3c0
add esp, 0xc
lea edx, [ebp - 0x4f0c]
push edx
mov ax, word [ebp - 0x272c]
push eax
mov cx, word [ebp + 8]
push ecx
call fcn.0040109b
add esp, 0xc
test eax, eax
je 0x4069d6
push str.succeeded_to_send_the_response_message_
call fcn.00401069
add esp, 4
jmp 0x4069e3
push str.failed_to_send_the_response_message_
call fcn.00401069
add esp, 4
mov esp, ebp
pop ebp
ret