Function at 0x460a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x472fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x495aa0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x495aa0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb0]
mov esi, ecx
lea eax, [esi + 0x70]
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], bl
call fcn.004127e0
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
push ebx
push ecx
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00412f30
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa0], 1
cmp eax, ebx
jne 0x460b8e
mov esi, dword [esp + 0x18]
mov byte [esp + 0xa0], bl
cmp esi, ebx
je 0x460b2b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x460b2b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x460b2b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0xa0], 0xffffffff
cmp byte [esp + 0x20], bl
je 0x460ee0
mov eax, dword [esp + 0x1c]
dec dword [eax]
jne 0x460ee0
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
lea ecx, [eax + 8]
mov eax, 0x80000000
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x460ee0
cmp eax, 0x80000000
jle 0x460ee0
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x460ee0
call fcn.00411590
jmp 0x460ed9
mov esi, dword [eax + 0x50]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
push ecx
mov ecx, edi
call fcn.00451870
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x4c]
mov esi, dword [eax]
mov ebp, 0xf
cmp esi, eax
je 0x460cbe
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0xa4], 2
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.004538b0
cmp dword [esp + 0x84], 0x10
mov byte [esp + 0xa0], 1
jb 0x460c71
mov edx, dword [esp + 0x70]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esi + 0x21], bl
jne 0x460cb1
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], bl
jne 0x460c92
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], bl
jne 0x460cb1
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], bl
je 0x460c87
jmp 0x460cb1
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], bl
jne 0x460caf
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x460caf
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], bl
je 0x460ca0
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 0x4c]
jne 0x460bd0
add ecx, 0x48
call fcn.0040ce00
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x40]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
push ecx
mov ecx, edi
call fcn.00451870
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
mov esi, dword [eax]
cmp esi, eax
je 0x460e03
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov eax, dword [eax + 4]
push 0xffffffffffffffff
push ebx
add eax, 0x18
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 3
call fcn.004085f0
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [esp + 0x5c], edx
call fcn.004538b0
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0xa0], 1
jb 0x460db0
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp byte [esi + 0x25], bl
jne 0x460df6
mov eax, dword [esi + 8]
cmp byte [eax + 0x25], bl
jne 0x460ddd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x25], bl
jne 0x460df6
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x25], bl
je 0x460dd2
jmp 0x460df6
mov eax, dword [esi + 4]
cmp byte [eax + 0x25], bl
jne 0x460df4
cmp esi, dword [eax + 8]
jne 0x460df4
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x25], bl
je 0x460de5
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx + 0x3c]
jne 0x460d00
mov edx, dword [ecx + 0x3c]
mov eax, dword [edx + 4]
lea esi, [ecx + 0x38]
push eax
mov ecx, esi
call fcn.0040d020
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0xa0], bl
cmp eax, ebx
je 0x460e63
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x460e63
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x460e63
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0xa0], 0xffffffff
cmp byte [esp + 0x20], bl
je 0x460ee0
mov eax, dword [esp + 0x1c]
dec dword [eax]
jne 0x460ee0
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
lea ecx, [eax + 8]
mov eax, 0x80000000
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x460ee0
cmp eax, 0x80000000
jle 0x460ee0
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x460ee0
mov eax, dword [ecx + 4]
lea esi, [ecx + 4]
cmp eax, ebx
jne 0x460ed9
push ebx
push ebx
call fcn.004114d0
mov ecx, eax
add esp, 8
mov edx, ecx
xor eax, eax
lock cmpxchg dword [esi], edx
mov esi, eax
cmp esi, ebx
je 0x460ed7
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x460ed9
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004661fa
add esp, 0x90
ret 0xc