Function at 0x450660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583e58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
lea esi, [edi + 0x50]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], vtable.CAutoRWLock.0
mov byte [esp + 0x2c], 1
call fcn.00403d40
mov dword [esp + 0x38], 0
cmp dword [edi + 8], 0
lea ebx, [edi + 8]
jne 0x4506fc
mov dword [esp + 0x38], 0xffffffff
lea eax, [esi + 8]
push eax
mov dword [esp + 0x28], vtable.CAutoRWLock.0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x3c]
sbb eax, dword [edi + 0x34]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jl 0x450740
jg 0x450718
cmp ecx, ebp
jb 0x450740
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x40]
mov ecx, dword [edi + 0x30]
push ebp
push edx
add ecx, eax
push ecx
call fcn.004ad550
mov edx, dword [edi + 0x40]
add esp, 0xc
add dword [edi + 0x30], ebp
adc dword [edi + 0x34], esi
add edx, dword [edi + 0x30]
jmp 0x45084d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test eax, eax
jl 0x450769
jg 0x450752
test ecx, ecx
jbe 0x450769
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [edi + 0x30]
push edx
add ecx, eax
push ecx
call fcn.004ad550
add esp, 0xc
mov eax, dword [edi + 0x10]
lea esi, [edi + 0x10]
test eax, eax
je 0x45077e
mov edx, dword [edi + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
call fcn.00450060
xor eax, eax
mov ecx, 0x10000
add dword [edi + 0x40], ecx
mov edx, dword [edi + 0x40]
mov dword [edi + 0x38], ecx
adc dword [edi + 0x44], eax
add edx, ecx
mov ecx, dword [edi + 0x44]
adc ecx, eax
push ecx
push edx
mov esi, ebx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
call fcn.0044fde0
mov edx, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
mov eax, dword [ebx]
mov ebx, dword [edi + 0x38]
push 2
push 4
push edx
push ecx
lea esi, [edi + 0x10]
call fcn.0044fef0
xor ecx, ecx
cmp eax, ecx
jge 0x45080f
mov edx, dword [edi + 0x38]
sub dword [edi + 0x40], edx
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x38], ecx
sbb dword [edi + 0x44], eax
mov dword [edi + 0x3c], ecx
call fcn.00450a30
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00403e10
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ebx, dword [esp + 0x18]
cmp ebx, ecx
jl 0x45085e
mov esi, dword [esp + 0x14]
jg 0x450821
cmp esi, ecx
jb 0x45085e
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 0x10]
mov ecx, ebp
sub ecx, esi
push ecx
lea ecx, [esi + edx]
push ecx
push eax
call fcn.004ad550
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x40]
add esp, 0xc
sub ebp, esi
sbb eax, ebx
mov dword [edi + 0x30], ebp
mov dword [edi + 0x34], eax
add edx, ebp
mov ecx, dword [edi + 0x44]
adc ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x80]
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00403e10
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8