Function at 0x45f470
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458108
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.0044fc10
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 2
push 0x45f638
push 0x23b1
mov dword [esp + 0x8c], 0
call fcn.0047ecf9
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.0044f430
push 2
push 0x45f638
push 0x23b1
mov byte [esp + 0x8c], 1
call fcn.0047ecf9
add esp, 0xc
push eax
lea eax, [esp + 0x34]
lea ecx, [esi + 0x18]
push eax
call fcn.00456c60
mov esi, eax
push 2
push 0x45f63c
push 0x289b
mov byte [esp + 0x94], 2
call fcn.0047ecf9
add esp, 0x14
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00456c60
add esp, 8
mov edi, eax
mov byte [esp + 0x80], 3
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x64], eax
mov byte [esp + 0x80], 4
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x68], eax
mov byte [esp + 0x80], 5
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x70], eax
push 2
push 0x45edac
mov bl, 6
push 0xe25
mov byte [esp + 0x8c], bl
call fcn.0047ecf9
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.0044f980
mov edx, dword [esp + 0x64]
cmp dword [edx - 0xc], 0
jne 0x45f5ec
test esi, esi
jne 0x45f5d3
xor eax, eax
jmp 0x45f5e1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f5d8
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x6c]
call fcn.0044f760
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00456ba0
add esp, 8
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x84], 7
call fcn.0044f980
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0
mov byte [esp + 0x80], 9
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f669
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f691
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f6b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x45f638
push 0x23b1
call fcn.0047ecf9
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
call fcn.0044f430
push 1
push 0x45e8a0
push 0x1aeb
mov byte [esp + 0x8c], 0xc
call fcn.0047ecf9
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.0044f430
mov byte [esp + 0x80], 0xd
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x80], 0xe
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x80], 0xf
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
push 2
push 0x45edac
push 0xe25
mov byte [esp + 0x8c], 0x10
call fcn.0047ecf9
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0044f980
mov edx, dword [esp + 0x44]
cmp dword [edx - 0xc], 0
jne 0x45f7b4
test esi, esi
jne 0x45f798
xor eax, eax
jmp 0x45f7a9
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f7a0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.0044f760
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00456ba0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x84], 0x11
call fcn.0044f980
mov byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0
mov byte [esp + 0x80], 0x13
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f85c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0
setge al
test al, al
je 0x45f9a0
lea esp, [esp]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.004569c0
mov byte [esp + 0x80], 0x15
mov eax, dword [eax]
mov edi, dword [esp + 0x70]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x45f936
cmp dword [edi + 0xc], 0
jl 0x45f928
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x45f928
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x45f8d2
cmp eax, dword [esi]
jne 0x45f8d2
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x45f906
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x460076
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call 0x48be54
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x45f91f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [esp + 0x70], ebx
jmp 0x45f936
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.0044f760
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f95e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4621d4
lea eax, [esp + 0x74]
call fcn.0046c130
mov ebx, eax
mov eax, 0x4621d4
call fcn.00474d10
mov ecx, dword [esp + 0x6c]
test ecx, ecx
setg al
test al, al
je 0x45f993
mov edx, dword [esp + 0x70]
cmp dword [edx - 0xc], 0
jg 0x45fab0
test ecx, ecx
setge al
test al, al
jne 0x45f870
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f9c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.004809a4
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x45fb6c
push 0x5c
push eax
call 0x48d367
add esp, 8
test eax, eax
je 0x45fb6c
mov ecx, dword [esp + 0x18]
sub eax, ecx
test eax, eax
jle 0x45fb6c
mov edx, dword [esp + 0x48]
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x45fb4d
mov eax, dword [esp + 0x44]
cmp dword [eax - 0xc], 0
jl 0x46007b
mov bl, byte [eax]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x45fb2e
push esi
lea ecx, [esp + 0x4c]
call fcn.0044fbc0
mov edx, dword [esp + 0x48]
mov byte [edx + edi], bl
test esi, esi
jl 0x46007b
cmp esi, dword [edx - 8]
jg 0x46007b
mov dword [edx - 0xc], esi
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0044f640
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
jmp 0x45f840
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov byte [esp + 0x80], 0x17
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x80], 0x18
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
push 2
push 0x45edac
push 0xe25
mov byte [esp + 0x8c], 0x19
call fcn.0047ecf9
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov ebx, eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 0xc
cmp eax, esi
je 0x45fc3e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45fc30
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45fc30
push eax
call fcn.0044fc10
mov dword [esp + 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45fc23
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x54], ecx
jmp 0x45fc3e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.0044f760
mov edx, dword [esp + 0x54]
cmp dword [edx - 0xc], 0
jne 0x45fc69
test ebx, ebx
jne 0x45fc50
xor eax, eax
jmp 0x45fc5e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45fc55
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x5c]
call fcn.0044f760
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00456ba0
add esp, 8
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 0x1a
call fcn.0044f980
mov byte [esp + 0x80], 0x19
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fcb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x80], 0x1b
mov dword [esp + 0x1c], ecx
jmp 0x45fcd0
test ecx, ecx
setge al
test al, al
je 0x45fe14
lea ecx, [ecx]
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004569c0
mov byte [esp + 0x80], 0x1c
mov eax, dword [eax]
mov edi, dword [esp + 0x60]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x45fdaa
cmp dword [edi + 0xc], 0
jl 0x45fd9c
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x45fd9c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x45fd46
cmp eax, dword [esi]
jne 0x45fd46
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x45fd7a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x460076
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call 0x48be54
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x45fd93
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [esp + 0x60], ebx
jmp 0x45fdaa
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.0044f760
mov byte [esp + 0x80], 0x1b
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fdd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4621d4
lea eax, [esp + 0x64]
call fcn.0046c130
mov ebx, eax
mov eax, 0x4621d4
call fcn.00474d10
mov ecx, dword [esp + 0x5c]
test ecx, ecx
setg al
test al, al
je 0x45fe07
mov edx, dword [esp + 0x60]
cmp dword [edx - 0xc], 0
jg 0x45ff02
test ecx, ecx
setge al
test al, al
jne 0x45fce0
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fe3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fe5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fe7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jle 0x45ffaa
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x460085
mov ecx, dword [esp + 0x14]
push eax
push ecx
call 0x48cc17
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x45ff0b
lea edx, [esp + 0x48]
lea esi, [edi + 0x70]
lea ecx, [esi + 4]
push edx
call fcn.0044f980
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0044f980
lea ecx, [edi + 0x6c]
push ecx
mov dword [esi + 8], ebx
call fcn.00462120
lea edx, [esp + 0x48]
lea esi, [edi + 0x94]
lea ecx, [esi + 4]
push edx
call fcn.0044f980
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0044f980
mov dword [esi + 8], ebx
jmp 0x45ffaa
inc dword [esp + 0x1c]
jmp 0x45fcd0
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x48]
call fcn.004806e5
lea edx, [esp + 0x14]
push edx
add edi, 0xb4
push edi
mov ecx, eax
mov byte [esp + 0x88], 0x1d
call fcn.004624d0
mov edi, eax
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ff5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 8]
push esi
call fcn.00462120
mov eax, dword [esi]
sub eax, 1
je 0x45ff94
sub eax, 1
jne 0x45ffaa
lea ecx, [esi + 0x14]
push ecx
call fcn.004809ff
add esi, 4
push esi
mov dword [esp + 0x20], eax
call fcn.004809ff
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
sete al
jmp 0x45ffa2
add esi, 0x14
push esi
call fcn.004809ff
test eax, eax
setg al
test al, al
je 0x45ffaa
or dword [edi + 4], 0x40
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x460004
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x45fff6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45fff6
push eax
call fcn.0044fc10
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45ffeb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
xor ebx, ebx
jmp 0x460004
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044f760
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x460061
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x46003b
cmp dword [ecx - 8], ebx
jl 0x46007b
mov dword [ecx - 0xc], ebx
mov byte [ecx], 0
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
jmp 0x45f840
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x460051
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
jmp 0x45f840
call fcn.0044fdc0
push 0x80070057
call fcn.0044dc00
push 0x80004005
call fcn.0044dc00
int3