Function at 0x415450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce60d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x512f80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x74]
call fcn.00416bc0
mov edi, dword [0x523d1c]
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x4154a9
cmp esi, 0x523d18
je 0x4154ae
call fcn.00483a80
mov ebx, dword [ebp - 0x70]
cmp ebx, edi
je 0x4154fd
test esi, esi
jne 0x4154be
call fcn.00483a80
cmp ebx, dword [esi + 4]
jne 0x4154c8
call fcn.00483a80
lea edi, [ebx + 0xc]
lea ecx, [ebp - 0x54]
push ecx
call fcn.00419970
mov dword [ebp - 4], 0
mov dl, byte [ebp - 0x37]
mov eax, dword [ebp - 0x58]
mov byte [eax], dl
mov bl, byte [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
push ecx
call fcn.0042afb0
mov al, bl
jmp 0x415be8
mov edx, dword [ebp - 0x58]
mov byte [edx], 0
lea eax, [ebp - 0x60]
push eax
call fcn.00455dd0
add esp, 4
mov dword [ebp - 4], 1
push 0x51b294
lea ecx, [ebp - 0x50]
push ecx
mov ecx, 0x4e228c
call fcn.00408aa0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
push edx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00408900
add esp, 0x14
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 0x10
jb 0x415554
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0xa8]
push edx
call fcn.00416cd0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x4155a3
push str.Non_null_m_pOwnedObj
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x68]
push edx
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x4155e5
push str.Non_null_m_pOwnedObj
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
lea eax, [ebp - 0x94]
push eax
mov edx, dword [edx + 0x58]
call edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x415624
push str.Non_null_m_pOwnedObj
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
mov eax, dword [eax + 0x54]
call eax
mov ebx, 8
mov byte [ebp - 4], bl
lea ebx, [ebx]
lea ecx, [ebp - 0x94]
push ecx
lea esi, [ebp - 0x84]
call fcn.00442020
test al, al
je 0x415784
lea edx, [ebp - 0x50]
push edx
mov edi, esi
call fcn.00442300
mov byte [ebp - 4], 9
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x68]
call fcn.00407220
mov edx, dword [eax]
lea ecx, [ebp - 0x78]
push ecx
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov edx, dword [edx + 0x34]
call edx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0xa8]
call fcn.00416d40
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov edx, dword [ebp - 0x70]
mov dword [eax + 4], edx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 0x10
jb 0x4156c0
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea esi, [ebp - 0x84]
call fcn.004422c0
jmp 0x415640
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
call fcn.00442190
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00442190
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
xor esi, esi
cmp eax, esi
je 0x4157db
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4157db
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x64], esi
mov ecx, dword [ebp - 0x68]
cmp ecx, esi
je 0x4157d8
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0xa4]
mov esi, dword [ecx]
mov dword [ebp - 0x7c], esi
jmp 0x4157f0
mov eax, dword [ebp - 0xa4]
cmp esi, eax
je 0x415b5b
lea edi, [esi + 0xc]
call fcn.00431e70
mov ebx, eax
mov dword [ebp - 0x64], ebx
cmp ebx, dword [esi + 0x28]
jne 0x4159bb
cmp dword [edi + 0x18], 0x10
jb 0x41581f
mov edi, dword [edi + 4]
jmp 0x415822
add edi, 4
push 0x4e27d4
push edi
call fcn.00482a90
add esp, 8
mov dword [ebp - 0x78], eax
xor esi, esi
cmp eax, esi
je 0x415a57
push eax
lea edx, [ebp - 0x98]
push edx
call fcn.004090b0
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x74], 0x8000
mov dword [ebp - 0x70], esi
push 0x8000
call fcn.00481d2d
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x70], edi
cmp edi, esi
je 0x415a78
mov byte [ebp - 4], 0x12
mov eax, ebx
shr eax, 0xf
test ebx, 0x7fff
je 0x415886
add eax, 1
xor ebx, ebx
mov dword [ebp - 0x88], ebx
cmp eax, ebx
jbe 0x415903
mov dword [ebp - 0x9c], eax
jmp 0x4158a0
mov esi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x88]
cmp esi, 0x8000
jbe 0x4158b6
mov esi, 0x8000
mov eax, dword [ebp - 0x78]
push eax
push 1
push esi
push edi
call fcn.00483204
add esp, 0x10
cmp eax, 1
je 0x4158ea
push 0x1b0
push str..SrcBootStrapperUtil.cpp
push str._fread_m_MallocBlockBuffer.get____uLen__1__pFile_____1_
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
push esi
push edi
push ebx
call fcn.004b7d00
mov ebx, eax
add dword [ebp - 0x88], esi
sub dword [ebp - 0x9c], 1
jne 0x4158a0
mov byte [ebp - 0x94], 1
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00482b15
add esp, 4
mov esi, dword [ebp - 0x7c]
cmp ebx, dword [esi + 0x2c]
jne 0x415afd
mov byte [ebp - 4], 0xe
push edi
call fcn.00481df0
add esp, 4
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x98], vtable.ScopeGuardImpl1_int____cdecl___struct__iobuf____struct__iobuf__.0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x98]
call fcn.00407250
mov byte [ebp - 4], 5
mov dword [ebp - 0x98], vtable.ScopeGuardImplBase.0
cmp byte [esi + 0x31], 0
je 0x415971
call fcn.00483a80
jmp 0x4157f0
mov edx, dword [esi + 8]
cmp byte [edx + 0x31], 0
jne 0x415998
mov ecx, edx
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
jne 0x41598e
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
je 0x415984
mov dword [ebp - 0x7c], ecx
mov esi, ecx
jmp 0x4157f0
mov eax, dword [esi + 4]
cmp byte [eax + 0x31], 0
jne 0x4159b1
cmp esi, dword [eax + 8]
jne 0x4159b1
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x4159a1
mov dword [ebp - 0x7c], eax
mov esi, eax
jmp 0x4157f0
xor esi, esi
cmp ebx, esi
jne 0x4159c7
mov eax, dword [ebp - 0x58]
mov byte [eax], 1
mov ecx, dword [ebp - 0x58]
mov al, byte [ecx]
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x55], al
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00416ad0
mov cx, word [ebp - 0x56]
mov word [eax], cx
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa8]
call fcn.00417610
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0x10
jb 0x415a08
mov edx, dword [ebp - 0x30]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x415a50
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x415a50
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x60]
cmp ecx, esi
je 0x415a4d
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x60], esi
xor al, al
jmp 0x415be8
mov ecx, dword [ebp - 0x58]
mov al, byte [ecx]
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x55], al
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00416ad0
mov cx, word [ebp - 0x56]
mov word [eax], cx
jmp 0x4159e3
lea ecx, [ebp - 0xd4]
call fcn.0048163e
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xd4], vtable.common::ICloneableException.0
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], esi
mov byte [ebp - 0xc4], 0
mov eax, 0x4e2b09
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415ab0
sub eax, edx
push eax
push 0x4e2b09
lea ecx, [ebp - 0xc8]
call fcn.0040e480
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xac], str.CMallocedBlock__:_malloc_failed
mov byte [ebp - 4], 0x11
mov dword [ebp - 0xd4], vtable.common::CRuntimeError.0
mov byte [ebp - 4], 0xe
push 0x5026f0
lea ecx, [ebp - 0xd4]
push ecx
call fcn.00488a7c
mov edx, dword [ebp - 0x58]
mov al, byte [edx]
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x55], al
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00416ad0
mov cx, word [ebp - 0x56]
mov word [eax], cx
mov byte [ebp - 4], 0xe
push edi
call fcn.00481df0
add esp, 4
xor esi, esi
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x98], vtable.ScopeGuardImpl1_int____cdecl___struct__iobuf____struct__iobuf__.0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x98]
call fcn.00407250
mov byte [ebp - 4], 5
mov dword [ebp - 0x98], vtable.ScopeGuardImplBase.0
jmp 0x4159e3
mov ecx, dword [ebp - 0x58]
mov al, byte [ecx]
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], al
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00416ad0
mov cx, word [ebp - 0x56]
mov word [eax], cx
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa8]
call fcn.00417610
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0x10
jb 0x415b9c
mov edx, dword [ebp - 0x30]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x1c], 0xf
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x415be6
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x415be6
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x60]
cmp ecx, esi
je 0x415be3
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x60], esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048162f
mov esp, ebp
pop ebp
ret