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

Disassembly:
push 0xffffffffffffffff
push 0x100146d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov dl, byte [0x1001e560]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x224], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x224]
push eax
call fcn.100010b0
add esp, 4
xor ebx, ebx
xor eax, eax
mov edx, 0x104
lea ecx, [esp + 0x1c]
cmp byte [ecx], bl
je 0x1000148a
inc ecx
dec edx
jne 0x10001480
jmp 0x100014b7
cmp edx, ebx
je 0x100014b7
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x1000149d
mov eax, 0x104
sub eax, edx
lea edx, [esp + 0x224]
mov ecx, 0x104
push edx
sub ecx, eax
lea edx, [esp + eax + 0x20]
push ecx
push edx
call fcn.100023a0
xor eax, eax
mov edx, 0x104
lea ecx, [esp + 0x1c]
cmp byte [ecx], bl
je 0x100014cc
inc ecx
dec edx
jne 0x100014c2
jmp 0x100014f6
cmp edx, ebx
je 0x100014f6
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x100014df
mov eax, 0x104
sub eax, edx
mov edx, 0x104
push 0x1001a0c8
sub edx, eax
lea eax, [esp + eax + 0x20]
push edx
push eax
call fcn.100023a0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10001642
mov dl, byte [0x1001e560]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x329]
mov byte [esp + 0x328], dl
mov byte [esp + 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._sQQ.ini
lea eax, [esp + 0x330]
push 0x104
push eax
call fcn.10002330
add esp, 0x10
lea ecx, [esp + 0x328]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001642
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push 0x104
push eax
push ebx
push 0x1001a0b4
push 0x1001a0b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [esp + 0x43c]
lea ecx, [esp + 0x14]
push ebp
call fcn.1000f2ef
push 4
lea ecx, [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x440], ebx
call fcn.1000eb6d
mov eax, dword [eax]
push eax
call fcn.10004224
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.1000f281
lea edx, [esp + 0x120]
lea ecx, [esp + 0x18]
push edx
call fcn.1000f2ef
push 4
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x440], 1
call fcn.1000eb6d
mov eax, dword [eax]
push eax
call fcn.10004224
add esp, 4
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1000f281
cmp esi, edi
jge 0x1000165d
mov byte [esp + 0x434], bl
lea ecx, [esp + 0x18]
call fcn.1000f281
lea ecx, [esp + 0x14]
mov dword [esp + 0x434], 0xffffffff
call fcn.1000f281
xor eax, eax
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x428
ret
push ebp
call fcn.100012a0
lea ecx, [esp + 0x124]
mov esi, eax
push ecx
call fcn.100012a0
add esp, 8
cmp esi, eax
mov byte [esp + 0x434], bl
lea ecx, [esp + 0x18]
jbe 0x10001629
call fcn.1000f281
lea ecx, [esp + 0x14]
mov dword [esp + 0x434], 0xffffffff
call fcn.1000f281
mov eax, 1
jmp 0x10001644