Function at 0x100398f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c440a
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10101404]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0x1f0beef
lea edx, [ebp - 0x30]
push edx
call fcn.100018e0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1003995e
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10002d60
mov eax, 8
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov esi, esp
mov dword [ebp - 0x5c], esi
cmp esi, ebx
je 0x1003999c
mov dword [esi], 0xabab01f0
mov dword [ebp - 4], 0xffffffff
jmp 0x100399b7
cmp esi, ebx
je 0x100399c1
mov dword [esi], 0xcdcd01f0
mov dword [ebp - 0x58], 6
test byte [0x10106d78], 1
jne 0x100399f8
or dword [0x10106d78], 1
mov dword [ebp - 4], 3
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x58]
push eax
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x10039b37
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 6
lea edi, [ebp - 0x54]
call fcn.10031570
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x10039a56
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.1000bc70
jmp 0x10039a64
push str.EnterFunction
push ecx
call fcn.1000d880
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x10106d78], 1
jne 0x10039aa6
or dword [0x10106d78], 1
mov byte [ebp - 4], 8
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 7
mov ecx, 0x10106d2c
mov dword [ebp - 0x58], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x10039aec
cmp dword [edi + 0x14], 8
jb 0x10039ad1
mov eax, dword [edi]
jmp 0x10039ad3
mov eax, edi
mov edx, dword [ecx]
push 0x1f0
push str.FileHandler::IsDirectoryExist
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 8
jb 0x10039b17
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.10031440
cmp esi, ebx
je 0x10039b41
mov dword [esi], 0xcdcd01f1
mov dword [ebp - 0x58], 6
test byte [0x10106d78], 1
jne 0x10039b78
or dword [0x10106d78], 1
mov dword [ebp - 4], 0xa
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x10039cba
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xd
mov edx, dword [ebp - 0x64]
push edx
push ecx
lea edi, [ebp - 0x54]
call fcn.10031570
mov ecx, eax
call fcn.10042070
add esp, 4
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
push ecx
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov edi, eax
mov bl, 0xe
mov byte [ebp - 4], bl
test byte [0x10106d78], 1
jne 0x10039c20
or dword [0x10106d78], 1
mov byte [ebp - 4], 0xf
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x58], 0x10106d2c
mov ecx, 0x10106d2c
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x10106d74]
test ecx, ecx
je 0x10039c6a
cmp dword [edi + 0x14], 8
jb 0x10039c4f
mov eax, dword [edi]
jmp 0x10039c51
mov eax, edi
mov edx, dword [ecx]
push 0x1f1
push str.FileHandler::IsDirectoryExist
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], bl
mov edx, dword [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], 8
jb 0x10039c94
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.10031440
xor ebx, ebx
mov esi, dword [ebp - 0x64]
push esi
call fcn.1003d2a0
add esp, 4
test al, al
je 0x10039e04
cmp dword [esi + 0x14], 8
jb 0x10039cd8
mov eax, dword [esi]
jmp 0x10039cda
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
mov edx, dword [ebp - 0x60]
mov byte [edx], cl
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x10039cf8
mov dword [eax], 0xcdcd0200
mov dword [ebp - 0x60], 6
test byte [0x10106d78], 1
jne 0x10039d2f
or dword [0x10106d78], 1
mov dword [ebp - 4], 0x11
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
push eax
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x10039e02
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0x14
push esi
push ecx
lea edi, [ebp - 0x54]
call fcn.10031570
mov ecx, eax
call fcn.10042100
add esp, 4
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov edx, edi
push edx
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x15
push 0x200
push str.FileHandler::IsDirectoryExist
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x1c], 8
jb 0x10039dde
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x54]
push edx
call fcn.10031440
mov al, 1
lea esp, [ebp - 0x74]
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.100af1c6
mov esp, ebp
pop ebp
ret