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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c218
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x4eae06
push 0x200000
mov dword [ebp - 0x1c], eax
call fcn.00478ef6
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41cb2f
push 0x100000
push 0
push esi
call fcn.0047e260
mov eax, dword [edi]
add esp, 0xc
push eax
push 0x100000
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, 0xffffe
je 0x41c7ab
push 0
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.0041c3a0
add esp, 0xc
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x38]
cmp edi, dword [ebp - 0x34]
jbe 0x41c6e5
call fcn.00478cdf
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x38], ebx
jbe 0x41c6f5
call fcn.00478cdf
test esi, esi
je 0x41c6fe
cmp esi, dword [ebp - 0x44]
je 0x41c703
call fcn.00478cdf
cmp edi, ebx
je 0x41c74b
test esi, esi
jne 0x41c743
call fcn.00478cdf
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41c71c
call fcn.00478cdf
mov ecx, dword [ebp + 8]
push edi
add ecx, 8
push ecx
call fcn.0041cc00
test esi, esi
jne 0x41c747
call fcn.00478cdf
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41c73e
call fcn.00478cdf
add edi, 4
jmp 0x41c6e8
mov eax, dword [esi]
jmp 0x41c712
mov eax, dword [esi]
jmp 0x41c734
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x41c791
mov esi, dword [ebp - 0x34]
cmp edi, esi
je 0x41c785
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c77e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, esi
jne 0x41c760
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00477b12
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.00477b12
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
mov edi, dword [edi + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
lea esp, [esp]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 8]
test edi, edi
je 0x41c7d1
cmp edi, eax
je 0x41c7d6
call fcn.00478cdf
mov eax, dword [ebp - 0x14]
cmp esi, ebx
je 0x41cb20
push 0x100000
push 0
push eax
call fcn.0047e260
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
add esp, 0xc
test edi, edi
jne 0x41c994
call fcn.00478cdf
cmp esi, dword [edi + 0x18]
jne 0x41c80d
call fcn.00478cdf
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x14]
push ebx
push 0x100000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0xffffe
je 0x41cb08
push 0
push eax
lea edx, [ebp - 0x74]
push edx
mov ecx, esi
call fcn.0041c3a0
add esp, 0xc
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x68]
cmp ebx, dword [ebp - 0x64]
jbe 0x41c851
call fcn.00478cdf
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
lea ebx, [ebx]
mov esi, dword [ebp - 0x64]
cmp dword [ebp - 0x68], esi
jbe 0x41c86d
call fcn.00478cdf
test edi, edi
je 0x41c876
cmp edi, dword [ebp - 0x74]
je 0x41c87b
call fcn.00478cdf
cmp ebx, esi
je 0x41caa4
test edi, edi
jne 0x41c99b
call fcn.00478cdf
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x41c89c
call fcn.00478cdf
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test edi, edi
jne 0x41c9a2
call fcn.00478cdf
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x41c8ba
call fcn.00478cdf
mov ecx, dword [ebx]
push 0x3d
lea edx, [ebp - 0x5c]
push esi
push edx
call fcn.0041c3a0
mov byte [ebp - 4], 2
mov eax, dword [0x4ead14]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4ead14
mov dword [ebp - 0x18], esp
mov esi, esp
call edx
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x5c]
call fcn.0041ce30
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edx, 1
ja 0x41c90d
call fcn.00478cdf
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 2
lea ebx, [ecx + 4]
test eax, eax
ja 0x41c921
call fcn.00478cdf
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov esi, ecx
test eax, eax
jne 0x41c9a9
call fcn.00478cdf
xor eax, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x18]
jne 0x41c93e
call fcn.00478cdf
mov edi, dword [ebp - 0x28]
push esi
add edi, 0x10
call fcn.00409740
mov edx, dword [ebx]
mov edi, dword [eax]
lea esi, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], eax
cmp esi, edi
je 0x41ca16
cmp dword [edi + 0xc], 0
jl 0x41ca0b
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41ca0b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41c9ad
cmp eax, dword [esi]
jne 0x41c9ad
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41c9e8
mov edi, dword [edi]
jmp 0x41c803
mov eax, dword [edi]
jmp 0x41c892
mov eax, dword [edi]
jmp 0x41c8b0
mov eax, dword [eax]
jmp 0x41c931
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41cb1b
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00477b2c
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ca01
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x41ca16
mov ecx, dword [edx - 0xc]
push ecx
push edx
push eax
call fcn.004168e0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x50]
xor ebx, ebx
cmp esi, ebx
je 0x41ca61
mov eax, dword [ebp - 0x4c]
mov edi, eax
cmp esi, eax
je 0x41ca58
lea esp, [esp]
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 0x41ca4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x41ca30
mov esi, dword [ebp - 0x50]
push esi
call fcn.00477b12
add esp, 4
mov ecx, dword [ebp - 0x5c]
push ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00477b12
mov eax, dword [ebp - 0x24]
add esp, 4
cmp eax, ebx
jne 0x41caa0
call fcn.00478cdf
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x41ca91
call fcn.00478cdf
add dword [ebp - 0x20], 4
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
jmp 0x41c860
mov eax, dword [eax]
jmp 0x41ca84
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x41caf1
mov edi, dword [ebp - 0x64]
cmp esi, edi
je 0x41cae5
lea esp, [esp]
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 0x41cade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x41cac0
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00477b12
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.00477b12
add esp, 4
lea esi, [ebp - 0x2c]
call fcn.0041d3c0
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
jmp 0x41c7c0
call fcn.004169f0
push eax
call fcn.00477c29
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 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