Function at 0x100052c6
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1c0
call fcn.10004c8f
cmp byte [0x10010254], 0
jne 0x100055c7
test byte [0x1001022c], 1
je 0x100055c7
push 0x104
lea eax, [ebp - 0x148]
push eax
push dword [0x100102bc]
mov byte [0x10010254], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x148]
push 0x2e
push eax
call fcn.100035a0
test eax, eax
pop ecx
pop ecx
je 0x1000532b
cmp byte [eax], 0x2e
jne 0x1000532b
mov byte [eax], 0
push esi
push str..ini
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000537c
test byte [0x1001022c], 2
mov esi, 0x1000e1bf
jne 0x10005362
mov esi, 0x1000d1b7
push 2
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call fcn.100046ea
add esp, 0x10
cmp dword [0x10010248], 0
je 0x100055c6
and dword [0x10010258], 0
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [0x10010258]
push dword [0x10010258]
lea eax, [ebp + 0x58]
push 0x1000b9b8
push eax
call edi
mov ecx, dword [0x10010248]
add esp, 0xc
push 0x1000b6a4
push 0x1000b28c
lea eax, [ebp + 0x58]
push eax
call fcn.100033c9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10005397
dec dword [0x10010258]
je 0x100055c5
mov eax, dword [0x10010258]
shl eax, 2
push eax
call fcn.10003613
test eax, eax
pop ecx
mov dword [0x1001025c], eax
je 0x100055c5
xor eax, eax
inc eax
cmp dword [0x10010258], eax
mov dword [ebp + 0x6c], eax
jl 0x100055c5
push ebx
mov ebx, 0x87
mov esi, dword [ebp + 0x6c]
push esi
lea eax, [ebp + 0x58]
push 0x1000b9b8
push eax
call edi
mov ecx, dword [0x10010248]
add esp, 0xc
push 0x1000b6a4
push 0x1000b28c
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.100033dd
push 0x94
call fcn.1000acce
shl esi, 2
pop ecx
mov ecx, dword [0x1001025c]
mov dword [esi + ecx - 4], eax
mov eax, dword [0x1001025c]
mov eax, dword [esi + eax - 4]
test eax, eax
je 0x100055c4
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x1001025c]
mov ecx, dword [esi + ecx - 4]
push dword [ebp + 0x6c]
mov byte [eax + ecx + 1], 0
lea eax, [ebp + 0x44]
push 0x1000b9b4
push eax
call edi
add esp, 0xc
and dword [ebp + 0x74], 0
inc dword [ebp + 0x74]
push dword [ebp + 0x74]
lea eax, [ebp + 0x58]
push 0x1000b9b8
push eax
call edi
mov ecx, dword [0x10010248]
add esp, 0xc
lea eax, [ebp + 0x44]
push eax
push 0x1000b28c
lea eax, [ebp + 0x58]
push eax
call fcn.100033c9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100054a7
mov eax, dword [ebp + 0x74]
mov ecx, dword [0x1001025c]
mov ecx, dword [esi + ecx - 4]
dec eax
mov dword [ebp + 0x74], eax
mov dword [ecx + 0x8c], eax
je 0x100055b2
shl eax, 2
push eax
call fcn.10003613
pop ecx
mov ecx, dword [0x1001025c]
mov ecx, dword [esi + ecx - 4]
mov dword [ecx + 0x90], eax
mov eax, dword [0x1001025c]
mov eax, dword [esi + eax - 4]
cmp dword [eax + 0x90], 0
je 0x100055c4
xor eax, eax
inc eax
cmp dword [ebp + 0x74], eax
mov dword [ebp + 0x70], eax
jl 0x100055b2
push dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push 0x1000b9b8
push eax
call edi
mov ecx, dword [0x10010248]
add esp, 0xc
lea eax, [ebp + 0x44]
push eax
push 0x1000b28c
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.100033dd
push ebx
call fcn.10003613
mov edx, dword [0x1001025c]
mov edx, dword [esi + edx - 4]
mov edx, dword [edx + 0x90]
pop ecx
mov ecx, dword [ebp + 0x70]
shl ecx, 2
mov dword [edx + ecx - 4], eax
mov eax, dword [0x1001025c]
mov eax, dword [esi + eax - 4]
mov eax, dword [eax + 0x90]
mov ecx, dword [eax + ecx - 4]
test ecx, ecx
je 0x100055b2
lea eax, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 0x74]
jle 0x10005536
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [0x10010258]
jle 0x10005415
pop ebx
pop edi
pop esi
add ebp, 0x78
leave
ret