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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472d61
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x528]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0x116]
xor edi, edi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x118], ax
call fcn.0043e9f0
xor edx, edx
push 0x62
push edx
lea eax, [esp + 0xba]
push eax
mov word [esp + 0xbc], dx
call fcn.0043e9f0
mov ecx, dword [esi + 0x24]
push 0x104
add ecx, 0x88
push ecx
lea edx, [esp + 0x12c]
push edx
call fcn.0043fecb
push 1
lea eax, [esp + 0x134]
push 0x475814
push eax
call fcn.0043fbc9
push 0xa
lea ecx, [esp + 0x140]
push str.uninst.ini
push ecx
call fcn.0043fbc9
mov ecx, dword [0x48f650]
add esp, 0x3c
lea eax, [esi + 0x28]
push eax
call fcn.00413bc0
mov edx, dword [esi + 0x24]
cmp byte [edx + 1], 0
je 0x414229
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414229
lea ecx, [esp + 0x1b]
push ecx
lea edx, [esp + 0x1f]
push edx
lea ecx, [esp + 0x44]
call fcn.00411af0
lea eax, [esp + 0x10c]
push eax
push 0xa
lea ecx, [esp + 0x98]
push ecx
push edi
push str.Total
push str.LocalFiles
mov dword [esp + 0x548], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x90]
push edx
call fcn.0043f174
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x413fba
lea esi, [edi + 1]
cmp ebx, esi
jl 0x413e7e
push 0xa
lea eax, [esp + 0x94]
push eax
push esi
call fcn.0043fc5d
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
push 0x104
lea edx, [esp + 0x31c]
push edx
push 0
lea eax, [esp + 0xa0]
push eax
push str.LocalFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x314]
push ecx
lea ecx, [esp + 0x18]
call fcn.004056c0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x538], 1
call fcn.00412d60
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
mov byte [esp + 0x530], 0
cmp ecx, dword [0x48d12c]
je 0x413e75
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413e75
push edi
call fcn.0043f1b9
add esp, 4
inc esi
cmp esi, ebx
jle 0x413dde
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax]
mov esi, dword [ebx + 0x28]
add ebx, 0x28
mov dword [esp + 0x24], eax
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx]
test esi, esi
je 0x413e9e
cmp esi, eax
je 0x413ea3
call fcn.004405b3
cmp dword [esp + 0x24], edi
je 0x413f01
test esi, esi
jne 0x413ef9
call fcn.004405b3
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x14]
jne 0x413ec2
call fcn.004405b3
mov eax, dword [esp + 0x24]
add eax, 8
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
call fcn.00412d60
test esi, esi
jne 0x413efd
call fcn.004405b3
xor eax, eax
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 0x14]
jne 0x413ef1
call fcn.004405b3
mov edx, dword [edi]
mov dword [esp + 0x24], edx
jmp 0x413e91
mov eax, dword [esi]
jmp 0x413eb4
mov eax, dword [esi]
jmp 0x413ee3
mov ecx, ebx
call fcn.00411a60
mov eax, dword [esp + 0x54]
mov edi, dword [eax]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], ecx
test esi, esi
je 0x413f32
cmp esi, dword [esp + 0x3c]
je 0x413f37
call fcn.004405b3
cmp edi, dword [esp + 0x34]
je 0x413f8d
test esi, esi
jne 0x413f89
call fcn.004405b3
cmp edi, dword [esi + 0x18]
jne 0x413f50
call fcn.004405b3
mov esi, dword [ebx + 0x14]
mov edx, dword [esi + 4]
lea eax, [edi + 0xc]
push eax
push edx
push esi
mov ecx, ebx
call fcn.00412c20
push 1
mov ecx, ebx
mov edi, eax
call fcn.00411bf0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x20]
mov dword [eax], edi
call fcn.0040f8d0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x413f20
mov esi, dword [esi]
jmp 0x413f46
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x40]
call fcn.00411b80
mov eax, dword [esp + 0x54]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], 0
mov dword [eax], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 8], eax
lea eax, [esp + 0x10c]
push eax
push 0xa
lea ecx, [esp + 0x98]
push ecx
push 0
push str.Total
push str.OtherFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x90]
push edx
call fcn.0043f174
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jle 0x41420d
mov edi, 1
cmp eax, edi
jl 0x41410d
lea ebx, [esp + 0x314]
shr ebx, 0x10
push 0xa
lea eax, [esp + 0x94]
push eax
push edi
call fcn.0043fc5d
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
push 0x104
lea edx, [esp + 0x31c]
push edx
push 0
lea eax, [esp + 0xa0]
push eax
push str.OtherFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x48d130]
mov dword [esp + 0x14], ecx
test bx, bx
jne 0x414073
lea edx, [esp + 0x314]
movzx eax, dx
push eax
lea ecx, [esp + 0x18]
call fcn.004054e0
jmp 0x4140b5
lea eax, [esp + 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4140b5
push esi
lea ecx, [esp + 0x18]
call fcn.00403870
test eax, eax
je 0x4140b5
lea eax, [esi + esi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x4140b5
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x318]
push edx
push eax
call fcn.0043ea70
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x538], 2
call fcn.00412d60
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
mov byte [esp + 0x530], 0
cmp eax, dword [0x48d12c]
je 0x414102
mov esi, dword [esp + 0x14]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414102
push esi
call fcn.0043f1b9
add esp, 4
inc edi
cmp edi, dword [esp + 0x30]
jle 0x414011
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x58]
mov eax, dword [eax]
mov esi, dword [ebx + 0x44]
add ebx, 0x44
mov edi, eax
mov edi, edi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x34], ecx
test esi, esi
je 0x414131
cmp esi, eax
je 0x414136
call fcn.004405b3
cmp edi, dword [esp + 0x34]
je 0x414184
test esi, esi
jne 0x41417c
call fcn.004405b3
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x414151
call fcn.004405b3
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x44]
call fcn.00412d60
test esi, esi
jne 0x414180
call fcn.004405b3
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x414178
call fcn.004405b3
mov edi, dword [edi]
jmp 0x414120
mov eax, dword [esi]
jmp 0x414147
mov eax, dword [esi]
jmp 0x41416e
mov ecx, ebx
call fcn.00411a60
mov ecx, dword [esp + 0x54]
mov edi, dword [ecx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea ecx, [ecx]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x34], edx
test esi, esi
je 0x4141b2
cmp esi, dword [esp + 0x3c]
je 0x4141b7
call fcn.004405b3
cmp edi, dword [esp + 0x34]
je 0x41420d
test esi, esi
jne 0x414209
call fcn.004405b3
cmp edi, dword [esi + 0x18]
jne 0x4141d0
call fcn.004405b3
mov esi, dword [ebx + 0x14]
lea eax, [edi + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebx
call fcn.00412c20
push 1
mov ecx, ebx
mov edi, eax
call fcn.00411bf0
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov dword [ecx], edi
lea ecx, [esp + 0x20]
call fcn.0040f8d0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x4141a0
mov esi, dword [esi]
jmp 0x4141c6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x530], 0xffffffff
call fcn.00412ce0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4144ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414260
movzx ecx, word [eax + str.LocalFiles]
mov word [esp + eax + 0xa4], cx
add eax, 2
test cx, cx
jne 0x414260
xor eax, eax
push 0xa
lea ecx, [esp + 0x6c]
push ecx
push eax
mov dword [esp + 0x20], 0
mov word [esp + 0x74], ax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov word [esp + 0x9a], ax
call fcn.0043fc5d
add esp, 0xc
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x6c]
push eax
push str.Total
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esi + 0x40], 0
je 0x4143c0
mov edx, dword [esi + 0x3c]
mov ebx, dword [edx]
add esi, 0x28
mov dword [esp + 0x30], esi
mov esi, dword [esi]
lea esp, [esp]
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x14]
mov eax, dword [eax]
test esi, esi
je 0x414321
cmp esi, eax
je 0x414326
call fcn.004405b3
lea ecx, [esp + 0x68]
cmp ebx, edi
je 0x414398
mov eax, dword [esp + 0x14]
push 0xa
inc eax
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0043fc5d
add esp, 0xc
test esi, esi
jne 0x414390
call fcn.004405b3
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x414358
call fcn.004405b3
mov eax, dword [ebx + 8]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
jne 0x414394
call fcn.004405b3
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x41438c
call fcn.004405b3
mov ebx, dword [ebx]
jmp 0x414310
mov eax, dword [esi]
jmp 0x41434e
mov eax, dword [esi]
jmp 0x414382
lea eax, [esp + 0x10c]
push eax
push ecx
push str.Total
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
push 0x64
lea eax, [esp + 0xa8]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.0043e9f0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.OtherFiles]
mov word [esp + eax + 0xa4], cx
add eax, 2
test cx, cx
jne 0x4143e0
mov ecx, 0x30
lea eax, [esp + 0x10c]
push eax
mov word [esp + 0x6c], cx
xor edx, edx
lea ecx, [esp + 0x6c]
push ecx
mov word [esp + 0x72], dx
push str.Total
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esi + 0x5c], 0
je 0x4144ec
mov eax, dword [esi + 0x58]
mov ebx, dword [eax]
mov esi, dword [esi + 0x44]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x58]
mov eax, dword [eax + 0x44]
test esi, esi
je 0x41444c
cmp esi, eax
je 0x414451
call fcn.004405b3
lea ecx, [esp + 0x68]
cmp ebx, edi
je 0x4144c6
mov eax, dword [esp + 0x14]
push 0xa
inc eax
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0043fc5d
add esp, 0xc
test esi, esi
jne 0x4144be
call fcn.004405b3
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x414483
call fcn.004405b3
mov eax, dword [ebx + 8]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
jne 0x4144c2
call fcn.004405b3
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4144b7
call fcn.004405b3
mov ebx, dword [ebx]
jmp 0x41443a
mov eax, dword [esi]
jmp 0x414479
mov eax, dword [esi]
jmp 0x4144ad
lea eax, [esp + 0x10c]
push eax
push ecx
push str.Total
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x14]
jmp 0x4144ee
mov eax, edi
mov ecx, dword [esp + 0x528]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.0043e9e1
mov esp, ebp
pop ebp
ret