Function at 0x4032f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9c2e
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x148], 0
test esi, esi
je 0x40356a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40356a
push 0x1f
push str.CtesHostSvc.exe_CtPrvHelper.dll
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.0040a020
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f0], 0x672378
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea eax, [ebp - 0x1e0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x148], 1
call fcn.0040a7e0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1f0]
push 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1f4], eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.0040a600
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x40342d
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403423
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403589
push edx
push ecx
call fcn.00575155
add esp, 8
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
push 0x3b
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040d050
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x403505
mov bl, byte [ebp + 0x10]
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0058db90
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
push esi
lea eax, [ebp - 0x114]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, bl
je 0x4034d8
cmp eax, 0xffffffff
je 0x4034dd
xor esi, esi
jmp 0x40350a
cmp eax, 0xffffffff
je 0x4034d4
push 0x3b
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040d050
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x403480
mov esi, 1
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x403540
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403536
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40358e
push edx
push ecx
call fcn.00575155
add esp, 8
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.004035a0
mov eax, esi
jmp 0x40356c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 0xc
call fcn.0059b248
call fcn.0059b248
int3