Function at 0x4062d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e298
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x43abb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor edi, edi
lea esi, [esp + 0x24]
mov dword [esp + 0x14], edi
call fcn.00402570
mov dword [esp + 0x60], edi
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x433888
mov edi, eax
call fcn.004081b0
add esp, 4
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40634a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
call fcn.0040b518
mov byte [esp + 0x60], 3
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x44]
call fcn.0040b5a6
test eax, eax
je 0x4065b5
lea ecx, [esp + 0x3c]
call fcn.0040b22d
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x40]
call eax
test eax, eax
je 0x4065aa
lea ecx, [esp + 0x3c]
call fcn.0040b4db
test eax, eax
jne 0x4065aa
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040b7e9
mov byte [esp + 0x60], 4
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov ebx, str.Brinst_lang.ini
mov edi, eax
call fcn.004081b0
add esp, 4
mov byte [esp + 0x60], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040c5b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406609
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x60], 7
mov eax, dword [edi - 8]
mov ebx, dword [esp + 0x1c]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x105
or eax, ecx
jge 0x406446
push 0x105
lea ecx, [esp + 0x1c]
call fcn.00404ea0
mov edi, dword [esp + 0x18]
push ebx
push 0x104
push edi
push 0x434508
push str.DispLang
push str.Lang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test edi, edi
jne 0x40646a
xor eax, eax
jmp 0x406485
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406470
sub eax, edx
sar eax, 1
js 0x406613
cmp eax, dword [edi - 8]
jg 0x406613
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
cmp dword [edi - 0xc], 0
je 0x4064a3
lea eax, [esp + 0x18]
jmp 0x4064b6
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040b6da
or dword [esp + 0x14], 1
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x94]
push eax
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x14], 1
mov esi, eax
mov dword [esp + 0x34], esi
je 0x406502
mov eax, dword [esp + 0x2c]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jl 0x406564
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040b7e9
push eax
lea ecx, [ebx + 0x284]
mov byte [esp + 0x64], 8
call fcn.0040bb5d
mov esi, eax
mov byte [esp + 0x60], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40654c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x94]
push esi
push ecx
push 0x151
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x406370
lea ecx, [esp + 0x3c]
call fcn.0040b15d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 2
call fcn.0040b53e
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404a20
push 0x80070057
call fcn.00404a20
int3