Function at 0x10007a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c576
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100962c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
call fcn.10004790
push str.gs.ini
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.1000f840
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x10007abe
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10003190
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0xf
cmovae eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x128
test eax, eax
je 0x10007b35
call fcn.10049b66
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 4
call fcn.1004d600
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.10048af0
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
cmp ecx, 0x10
jb 0x10007b2e
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.10003190
mov eax, edi
jmp 0x10007ce1
call fcn.10049b66
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 5
call fcn.1004d600
add esp, 0xc
mov ecx, esi
call fcn.10048b90
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
push 9
push str.log.level
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10002f60
mov byte [ebp - 4], 7
test esi, esi
je 0x10007c22
mov eax, dword [esi]
lea ecx, [ebp - 0x48]
push 6
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x10007bb9
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10003190
push 0xa
push str.log.tofile
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10002f60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x10007c00
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10003190
mov eax, dword [ebp - 0x1c]
mov dword [edi], esi
cmp eax, 0x10
jb 0x10007b2e
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10003190
mov eax, edi
jmp 0x10007ce1
push 0
lea ecx, [ebp - 0x94]
call fcn.10025900
push 0x1009458c
lea eax, [ebp - 0x94]
push eax
call fcn.1004cc2d
push 0x128
call fcn.10049b66
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 0xa
call fcn.1004d600
add esp, 0x10
mov ecx, esi
call fcn.10048b90
mov esi, eax
mov dword [ebp - 0x18], esi
push str.log.level
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.10002d90
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.1000a390
push 6
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.10002d50
push str.log.tofile
lea ecx, [ebp - 0x68]
call fcn.10002d90
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.1000a390
push 1
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x68]
call fcn.10002d50
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
mov eax, 0x10007cde
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10049b55
mov esp, ebp
pop ebp
ret