Function at 0x45bfd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d7fd
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x5b627c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x44], eax
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45c012
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45c456
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45c02b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c03d
mov bl, 1
jmp 0x45c456
mov eax, dword [esi + 0x10]
xor ebx, ebx
test eax, eax
je 0x45c0bb
lea edi, [eax*2 + 2]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466165
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x44], ebx
call fcn.0050fe00
add esp, 0x10
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x45c07f
mov edx, dword [esi]
shr edi, 1
je 0x45c0bb
mov ecx, ebx
mov ebx, SysReAllocString
sub ebx, edi
sub edx, dword [ebp - 0x44]
nop
lea eax, [edi + ebx]
test eax, eax
je 0x45c0ab
movzx eax, word [ecx + edx]
test ax, ax
je 0x45c0ab
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x45c090
mov ebx, dword [ebp - 0x44]
lea eax, [ecx - 2]
test edi, edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, ebx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c0e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041c630
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
jb 0x45c12d
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x45c12d
push eax
push 0x56b8c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0041c540
jmp 0x45c13f
push 0xfde9
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047efa0
add esp, 0xc
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp edx, 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, edi
mov byte [ebp - 4], 1
cmp byte [eax + ecx], 0x5c
je 0x45c170
push 1
push 0x56ba98
lea ecx, [ebp - 0x28]
call fcn.0041c230
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x45c1bf
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45c24f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c474
jmp 0x45c245
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45c205
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45c24f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c479
jmp 0x45c245
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45c24f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c47e
push edx
push ecx
call fcn.00465e7d
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x45c290
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c286
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c483
push edx
push ecx
call fcn.00465e7d
add esp, 8
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x45c29a
mov edi, dword [esi]
mov dword [ebp - 0xf8], 0x570d30
push 0
lea eax, [ebp - 0xf4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x90], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x94], 0x60
call fcn.0045e100
mov eax, dword [ebp - 0xf8]
push 0
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call fcn.004554b0
push 0x40
push 0xa
push edi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.0045e2a0
test eax, eax
jne 0x45c369
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xc0], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xec]
and eax, 0x17
mov dword [ebp + ecx - 0xec], eax
mov ecx, dword [ebp + ecx - 0xe8]
and ecx, eax
jne 0x45c488
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 6
call fcn.0045dbb0
test eax, eax
jne 0x45c3bb
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xc0], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xec]
and eax, 0x17
mov dword [ebp + ecx - 0xec], eax
mov ecx, dword [ebp + ecx - 0xe8]
and ecx, eax
jne 0x45c4cd
test ebx, ebx
je 0x45c3c8
push ebx
call fcn.0046616e
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x45c3d0
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
mov eax, dword [ebp - 0xf8]
sete bl
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call fcn.00455620
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xfc], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.004680e6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465d1b
mov esp, ebp
pop ebp
ret
call fcn.005143e9
call fcn.005143e9
call fcn.005143e9
call fcn.005143e9
test cl, 4
je 0x45c494
mov esi, str.ios_base::badbit_set
jmp 0x45c4a4
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x100]
push 1
push eax
call fcn.0041d4d0
add esp, 8
lea ecx, [ebp - 0x3c]
push eax
push esi
call fcn.00406c20
push 0x5a1790
lea eax, [ebp - 0x3c]
push eax
call fcn.0051040c
test cl, 4
je 0x45c4d9
mov esi, str.ios_base::badbit_set
jmp 0x45c4e9
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.0041d4d0
add esp, 8
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.00406c20
push 0x5a1790
lea eax, [ebp - 0x24]
push eax
call fcn.0051040c
int3