Function at 0x4cb6a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c912
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], 0
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x4cb9b1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.004ca5c0
add esp, 4
or esi, 0xffffffff
test al, al
je 0x4cb97c
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cb72b
push dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4cb97c
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x4cb9bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
call fcn.004ca5c0
add esp, 4
test al, al
je 0x4cb95a
push str.local.log
lea ecx, [ebp - 0x10]
call fcn.004c8fb0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x68]
mov dword [ebp - 0xd0], 0x56d120
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xd0]
push 0
mov dword [ebp - 0x20], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd4], eax
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004d1a90
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xcc]
call fcn.004c5c70
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xcc]
push 0x40
push 2
push esi
call fcn.004d1de0
test eax, eax
jne 0x4cb86f
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x98], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xc4]
and eax, 0x17
mov dword [ebp + ecx - 0xc4], eax
mov ecx, dword [ebp + ecx - 0xc0]
and ecx, eax
jne 0x4cb9c5
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x80], 0
jne 0x4cb892
xor bl, bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
call fcn.004c8120
or esi, 0xffffffff
jmp 0x4cb95c
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x4cb8a4
mov dword [edi], 0x1b7740
mov eax, 0x1b7740
push 0xa
push eax
lea ecx, [ebp - 0xd0]
call fcn.004c7b60
push eax
call fcn.004c2700
mov ecx, dword [edi + 0x10]
add esp, 8
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x4cb8f9
nop word [eax + eax]
push 0xa
push dword [eax + 0x10]
lea ecx, [ebp - 0xd0]
call fcn.004c7b60
push eax
call fcn.004c2700
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.004c7e80
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x10]
jne 0x4cb8d0
lea ecx, [ebp - 0xcc]
call fcn.004cf8a0
test eax, eax
jne 0x4cb944
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x98], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xc4]
and eax, 0x17
mov dword [ebp + ecx - 0xc4], eax
mov ecx, dword [ebp + ecx - 0xc0]
and ecx, eax
jne 0x4cba10
mov bl, 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
call fcn.004c8120
or esi, 0xffffffff
jmp 0x4cb95c
xor bl, bl
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cb97e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4cb97e
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4cb99d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
test cl, 4
je 0x4cb9d1
mov esi, str.ios_base::badbit_set
jmp 0x4cb9e1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xd8]
push 1
push eax
call fcn.004d1c20
add esp, 8
lea ecx, [ebp - 0xec]
push eax
push esi
call fcn.004c6590
push 0x5c7918
lea eax, [ebp - 0xec]
push eax
call fcn.00529368
test cl, 4
je 0x4cba1c
mov esi, str.ios_base::badbit_set
jmp 0x4cba2c
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004d1c20
add esp, 8
lea ecx, [ebp - 0x100]
push eax
push esi
call fcn.004c6590
push 0x5c7918
lea eax, [ebp - 0x100]
push eax
call fcn.00529368
int3