Function at 0x40a870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b96
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x451008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040d340
mov dword [ebp - 4], 0
mov esi, 1
push 4
mov dword [ebp - 0x1c], 0
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
push 0xffffffffffffffff
push 0x449b04
push 2
push edi
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e1f0
mov byte [ebp - 4], 0
test edi, edi
je 0x40a906
push 2
push edi
call fcn.0041aef0
add esp, 8
push 0x451cc0
lea ecx, [ebp - 0x34]
call fcn.0040e1f0
lea ecx, [ebp - 0x34]
call fcn.0040e6a0
mov esi, eax
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
movzx ebx, bl
cmp eax, 0xffffffff
push esi
cmove ebx, ecx
call fcn.0041b273
add esp, 4
test bl, bl
je 0x40ac3f
xor ebx, ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], ebx
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x40ac3f
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a99e
push 0xc
call fcn.0041ab28
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebx], vtable.OFileInputStream.0
mov dword [ebx + 4], edi
mov dword [ebx + 8], 0
jmp 0x40aa2d
push 0x66
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], 0x32
call fcn.0041b26a
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], ecx
push 0xffffffffffffffff
push str.OFIS___Unable_to_open_file__s_due_to_win32_code__X
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x28]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x1b
push str.OFileInputStream::open
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofileinputstream.cpp
push 0
call fcn.00416c20
mov byte [ebp - 4], 0
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40aa26
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 2
push esi
call fcn.0041aef0
add esp, 8
test ebx, ebx
je 0x40ac3f
push ecx
mov ecx, ebx
call fcn.0040d030
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ac3f
cmp dword [eax + 4], 0
jle 0x40ac2c
push 8
call fcn.0041ab28
mov ecx, dword [ebp - 0x10]
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x40ab09
cmp esi, eax
jae 0x40aac1
mov eax, dword [ecx]
movzx eax, word [eax + esi*2]
cmp eax, 0xa
jne 0x40aab1
push 8
mov dword [ebp - 0x14], eax
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x40aadc
cmp eax, 0x20
jbe 0x40aac1
dec eax
mov ecx, edi
push eax
call fcn.0040dea0
jmp 0x40aafe
push 8
mov dword [ebp - 0x18], 0x7e
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0040d2b0
mov ebx, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x40aafe
push ebx
mov ecx, edi
call fcn.0040e1f0
push ecx
mov ecx, ebx
call fcn.00409b80
mov ecx, dword [ebp - 0x10]
inc esi
mov eax, dword [ecx + 4]
cmp esi, eax
jb 0x40aa8d
mov edx, dword [edi]
or esi, 0xffffffff
test edx, edx
je 0x40ac00
cmp dword [edi + 4], 0
jbe 0x40ac00
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x40ab41
movzx eax, word [edx]
inc ecx
add edx, 2
mov esi, ebx
cmp eax, 0x3d
cmovne esi, dword [ebp - 0x20]
cmp ecx, dword [edi + 4]
jb 0x40ab22
test esi, esi
jle 0x40ac00
push esi
push 0
mov ecx, edi
call fcn.0040e4d0
mov ebx, eax
mov ecx, edi
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
call fcn.0040e4d0
mov esi, eax
test ebx, ebx
je 0x40abd3
mov ecx, ebx
call fcn.0040ed40
test esi, esi
je 0x40ab7a
mov ecx, esi
call fcn.0040ed40
mov ecx, dword [ebx]
test ecx, ecx
je 0x40abaa
cmp dword [ebx + 4], 0
jbe 0x40abaa
mov eax, dword [0x451cc8]
test eax, eax
je 0x40abaa
cmp dword [0x451ccc], 0
jbe 0x40abaa
push eax
push ecx
call fcn.0041e7f3
add esp, 8
test eax, eax
je 0x40ac67
mov eax, dword [ebx]
test eax, eax
je 0x40abc1
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0041aef0
add esp, 8
test esi, esi
je 0x40ac00
mov eax, dword [esi]
test eax, eax
je 0x40abee
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x40ac17
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0041aef0
mov ebx, dword [ebp - 0x1c]
add esp, 8
push ecx
mov ecx, ebx
call fcn.0040d030
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40aa53
xor ebx, ebx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40ac53
push 2
push ecx
call fcn.0041aef0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040d750
mov ecx, dword [ebp - 0x10]
mov ebx, eax
test ecx, ecx
je 0x40ac41
push ecx
call fcn.00409b80
jmp 0x40ac41