Function at 0x100045d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d016
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100be2d4]
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.1000f040
push str.gs.ini
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.1000aec0
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1000464e
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002e00
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 0x100046c5
call fcn.10052687
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 4
call fcn.1005dc80
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.1004f4d0
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
cmp ecx, 0x10
jb 0x100046be
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.10002e00
mov eax, edi
jmp 0x10004871
call fcn.10052687
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 5
call fcn.1005dc80
add esp, 0xc
mov ecx, esi
call fcn.1004f570
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.10002bd0
mov byte [ebp - 4], 7
test esi, esi
je 0x100047b2
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 0x10004749
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002e00
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.10002bd0
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 0x10004790
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002e00
mov eax, dword [ebp - 0x1c]
mov dword [edi], esi
cmp eax, 0x10
jb 0x100046be
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10002e00
mov eax, edi
jmp 0x10004871
push 0
lea ecx, [ebp - 0x94]
call fcn.10023450
push 0x100bc804
lea eax, [ebp - 0x94]
push eax
call fcn.1005d2ad
push 0x128
call fcn.10052687
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x128
push 0
push esi
mov byte [ebp - 4], 0xa
call fcn.1005dc80
add esp, 0x10
mov ecx, esi
call fcn.1004f570
mov esi, eax
mov dword [ebp - 0x18], esi
push str.log.level
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.10002a10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.10006e40
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.100029d0
push str.log.tofile
lea ecx, [ebp - 0x68]
call fcn.10002a10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.10006e40
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.100029d0
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
mov eax, 0x1000486e
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.10052676
mov esp, ebp
pop ebp
ret