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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4348
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x4e2d14
push 0x200000
mov dword [ebp - 0x18], eax
call fcn.0048bb06
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40e4ea
push 0x100000
push 0
push edi
call fcn.0048f0a0
mov eax, dword [ebx]
add esp, 0xc
push eax
push 0x100000
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesW]
cmp eax, 0xffffe
je 0x40e21e
push 0
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0040def0
add esp, 0xc
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
jbe 0x40e155
call fcn.0048b3f2
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x38], ebx
jbe 0x40e165
call fcn.0048b3f2
test edi, edi
je 0x40e16e
cmp edi, dword [ebp - 0x44]
je 0x40e173
call fcn.0048b3f2
cmp esi, ebx
je 0x40e1bb
test edi, edi
jne 0x40e1b3
call fcn.0048b3f2
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40e18c
call fcn.0048b3f2
mov ecx, dword [ebp + 8]
push esi
add ecx, 8
push ecx
call fcn.0040e7a0
test edi, edi
jne 0x40e1b7
call fcn.0048b3f2
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40e1ae
call fcn.0048b3f2
add esi, 4
jmp 0x40e158
mov eax, dword [edi]
jmp 0x40e182
mov eax, dword [edi]
jmp 0x40e1a4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x40e201
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x40e1f5
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e1ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40e1d0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00480ff0
add esp, 4
mov edx, dword [ebp - 0x44]
xor eax, eax
push edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.00480ff0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
lea esp, [esp]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 8]
test ecx, ecx
je 0x40e241
cmp ecx, eax
je 0x40e246
call fcn.0048b3f2
cmp dword [ebp - 0x20], esi
je 0x40e4de
push 0x100000
push 0
push edi
call fcn.0048f0a0
mov esi, dword [ebx]
add esp, 0xc
cmp dword [ebp - 0x24], 0
jne 0x40e44b
call fcn.0048b3f2
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jne 0x40e27f
call fcn.0048b3f2
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
push esi
push 0x100000
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionW]
cmp eax, 0xffffe
je 0x40e4d1
push 0
push eax
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040def0
add esp, 0xc
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x68]
cmp esi, dword [ebp - 0x64]
jbe 0x40e2c3
call fcn.0048b3f2
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x2c], edi
mov ebx, esi
jmp 0x40e2d0
mov esi, dword [ebp - 0x64]
cmp dword [ebp - 0x68], esi
jbe 0x40e2dd
call fcn.0048b3f2
test edi, edi
je 0x40e2e6
cmp edi, dword [ebp - 0x74]
je 0x40e2eb
call fcn.0048b3f2
cmp ebx, esi
je 0x40e46e
test edi, edi
jne 0x40e455
call fcn.0048b3f2
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40e30c
call fcn.0048b3f2
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
test edi, edi
jne 0x40e45c
call fcn.0048b3f2
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40e32a
call fcn.0048b3f2
mov ecx, dword [ebx]
push 0x3d
lea edx, [ebp - 0x5c]
push esi
push edx
call fcn.0040def0
mov byte [ebp - 4], 2
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4e3954
mov dword [ebp - 0x1c], esp
mov esi, esp
call edx
add eax, 0x10
lea ecx, [ebp - 0x5c]
mov dword [esi], eax
call fcn.0040ead0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edx, 1
ja 0x40e37d
call fcn.0048b3f2
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 2
lea edi, [ecx + 4]
test eax, eax
ja 0x40e391
call fcn.0048b3f2
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov esi, ecx
test eax, eax
jne 0x40e463
call fcn.0048b3f2
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jne 0x40e3b2
call fcn.0048b3f2
mov edx, dword [ebp - 0x20]
push esi
add edx, 0x10
push edx
call fcn.0040e580
push edi
mov ecx, eax
call fcn.004064b0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x40e411
mov eax, dword [ebp - 0x4c]
mov edi, eax
cmp esi, eax
je 0x40e408
jmp 0x40e3e0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40e3e0
mov esi, dword [ebp - 0x50]
push esi
call fcn.00480ff0
add esp, 4
mov ecx, dword [ebp - 0x5c]
xor esi, esi
push ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.00480ff0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp eax, esi
jne 0x40e46a
call fcn.0048b3f2
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40e440
call fcn.0048b3f2
mov edi, dword [ebp - 0x2c]
add ebx, 4
jmp 0x40e2d0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
jmp 0x40e272
mov eax, dword [edi]
jmp 0x40e302
mov eax, dword [edi]
jmp 0x40e320
mov eax, dword [eax]
jmp 0x40e3a5
mov eax, dword [eax]
jmp 0x40e436
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x40e4b4
mov edi, dword [ebp - 0x64]
cmp esi, edi
je 0x40e4a8
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e4a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40e483
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00480ff0
add esp, 4
mov edx, dword [ebp - 0x74]
xor eax, eax
push edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
call fcn.00480ff0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
add esp, 4
lea esi, [ebp - 0x24]
call fcn.0040d290
jmp 0x40e230
push edi
call fcn.00480ff0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4