Function at 0x406c70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568da8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0x580060
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00404670
push str.GetMessageFromLangSection
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00404670
push 0x580060
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404670
push str.error:
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404670
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004030d0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.success:
lea ecx, [ebp - 0x2c]
call fcn.00404670
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push eax
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.004030d0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.error:
lea ecx, [ebp - 0x14]
call fcn.00404670
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
mov byte [ebp - 4], 0xb
test ecx, ecx
jne 0x406d91
push 0x80004005
call fcn.00401330
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.0054d1d7
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x24]
test bl, bl
je 0x406dd2
lea ecx, [ebp - 0x1c]
jmp 0x406e33
push str.success:
lea ecx, [ebp - 0x14]
call fcn.00404670
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
mov byte [ebp - 4], 0xc
test ecx, ecx
jne 0x406dfa
push 0x80004005
call fcn.00401330
push eax
push edi
call fcn.0054d1d7
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406e3c
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403380
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
mov eax, dword [edx - 0xc]
sub eax, ecx
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.004030d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push eax
push str.Checking_message_part_:__s
push ecx
push 8
push 0x5e3e78
mov byte [ebp - 4], 0xd
call fcn.0042b490
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00402df0
lea ecx, [ebp - 0x14]
call fcn.00403640
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x406eaf
mov edx, dword [ebp - 0x20]
push str.Message_part_not_provided
push edx
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x10
jmp 0x406fbe
jns 0x406ebb
push 0x80070057
call fcn.00401330
movzx ecx, word [esi]
mov edx, 0x7b
cmp dx, cx
jne 0x406fbe
lea ecx, [eax - 1]
test ecx, ecx
js 0x406eb1
cmp ecx, eax
jg 0x406eb1
movzx eax, word [esi + ecx*2]
mov ecx, 0x7d
cmp cx, ax
jne 0x406fbe
push edx
lea ecx, [ebp - 0x14]
call fcn.00402f10
push 0x7d
lea ecx, [ebp - 0x14]
call fcn.004036c0
lea edx, [ebp - 0x30]
push edx
mov ecx, 0x5e3c90
call fcn.004261a0
mov esi, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov ebx, 0x400
sub eax, ebx
or eax, ecx
mov byte [ebp - 4], 0xe
jge 0x406f35
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
mov eax, edx
cmp dword [edx - 8], ebx
jge 0x406f46
push 0x80070057
call fcn.00401330
push esi
mov esi, dword [ebp - 0x14]
push ebx
push eax
mov dword [edx - 0xc], ebx
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 0x580060
mov word [edx + 0x800], cx
mov eax, dword [ebp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0054d87f
add esp, 8
test eax, eax
js 0x406eb1
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x406eb1
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
call fcn.004037c0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407035
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40707b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40709e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc