Function at 0x40a350
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dc68
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58f9ac]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x444], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x43c], esp
xor esi, esi
push str.ModifyIni
mov dword [ebp - 4], esi
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x440], esp
push 0x53ec40
mov byte [ebp - 4], 1
call fcn.00402730
lea eax, [ebp - 0x41c]
or edi, 0xffffffff
push eax
mov dword [ebp - 4], edi
call fcn.004060e0
add esp, 0x10
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 4], 2
mov ecx, 0x53f284
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a416
cmp dx, si
je 0x40a412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a416
add eax, 4
add ecx, 4
cmp dx, si
jne 0x40a3f0
xor eax, eax
jmp 0x40a41a
sbb eax, eax
sbb eax, edi
cmp eax, esi
sete al
test al, al
jne 0x40a9fa
lea ecx, [ebp - 0x41c]
push 0x53df2c
push ecx
call fcn.00405e40
add esp, 8
test al, al
jne 0x40a9fa
mov edx, dword [0x58f9b4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a9fa
push 0x3fe
lea edx, [ebp - 0x40e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x410], cx
call fcn.00515860
mov eax, dword [0x58f9b4]
add esp, 0xc
push eax
push 0x200
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebp - 0x438], eax
call fcn.0041b722
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a4ae
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
call fcn.0041b722
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a4de
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 4
call fcn.0041b722
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a50e
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 5
call fcn.0041b722
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a53e
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x418], edi
xor eax, eax
mov bl, 6
mov byte [ebp - 4], bl
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x438], eax
jbe 0x40a949
cmp word [ebp - 0x410], 0
je 0x40a949
cmp word [ebp + eax*2 - 0x410], 0
jne 0x40a935
sub eax, esi
lea esi, [ebp + eax*2 - 0x410]
mov eax, dword [0x58f9b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x424], esp
mov edi, esp
push eax
mov dword [ebp - 0x444], 0xffffffff
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.File
mov byte [ebp - 4], 7
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x414], esp
push esi
mov byte [ebp - 4], 8
call fcn.00402730
lea ecx, [ebp - 0x450]
push ecx
mov byte [ebp - 4], bl
call fcn.004060e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 9
call fcn.004024c0
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a625
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x418]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov edi, esp
push eax
call fcn.00402000
lea ecx, [ebp - 0x44c]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.00406240
add esp, 8
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0xa
call fcn.004024c0
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x58f9b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov edi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.SectionName
mov byte [ebp - 4], 0xb
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
mov byte [ebp - 4], 0xc
call fcn.00402730
lea ecx, [ebp - 0x448]
push ecx
mov byte [ebp - 4], bl
call fcn.004060e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 0xd
call fcn.004024c0
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x58f9b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov edi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.KeyName
mov byte [ebp - 4], 0xe
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
mov byte [ebp - 4], 0xf
call fcn.00402730
lea ecx, [ebp - 0x440]
push ecx
mov byte [ebp - 4], bl
call fcn.004060e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x10
call fcn.004024c0
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a7a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x58f9b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov edi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.Value
mov byte [ebp - 4], 0x11
call fcn.00402730
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
mov byte [ebp - 4], 0x12
call fcn.00402730
lea ecx, [ebp - 0x43c]
push ecx
mov byte [ebp - 4], bl
call fcn.004060e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0x13
call fcn.004024c0
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a82d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x418]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov esi, esp
push eax
call fcn.00402000
lea ecx, [ebp - 0x454]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00406240
add esp, 8
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0x14
call fcn.004024c0
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x42c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x414], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp - 0x418]
lea eax, [edi - 0x10]
mov dword [ebp - 0x420], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x15
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
mov dword [ebp - 0x424], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x16
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 0x458], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x17
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00405f00
mov ecx, dword [ebp - 0x430]
add esp, 0x10
cmp word [ebp + ecx*2 - 0x40e], 0
je 0x40a949
mov esi, dword [ebp - 0x444]
mov eax, ecx
inc eax
inc esi
mov dword [ebp - 0x430], eax
cmp eax, dword [ebp - 0x438]
jb 0x40a569
add edi, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a969
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 0x434]
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 0x40a98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x428]
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 0x40a9b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x42c]
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 0x40a9db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x41c]
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
jmp 0x40aa10
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40aa1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514c0e
mov esp, ebp
pop ebp
ret