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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59b988
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x44]
mov dword [esp + 0x68], 0
push eax
call fcn.00459bf0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x459778
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov byte [esp + 0x68], 1
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x459a01
jmp 0x4597c0
lea eax, [edx*4]
mov edx, dword [eax + ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
lea ecx, [edx - 0x10]
lea esi, [eax - 0x10]
cmp ecx, esi
je 0x459824
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45980f
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x45980f
call fcn.0040c3c0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x459806
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [esp + 0x50], eax
jmp 0x459820
push dword [edx - 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.0040c1c0
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov esi, ecx
cmp ecx, dword [esp + 0x48]
je 0x4598a4
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x45976e
push eax
push dword [esi]
call fcn.00551d79
add esp, 8
test eax, eax
je 0x45985d
add esi, 0xc
cmp esi, dword [esp + 0x48]
je 0x4598a4
mov eax, dword [esp + 0x50]
jmp 0x459837
cmp esi, dword [esp + 0x48]
je 0x4598a4
push dword [esi + 8]
mov ecx, edi
call fcn.00456380
test eax, eax
je 0x4599e3
push dword [esi + 4]
mov ecx, eax
call fcn.00450960
test eax, eax
je 0x4599e3
push 1
mov ecx, eax
call fcn.0044eec0
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x4c]
call fcn.0045b9c0
jmp 0x4599e3
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45976e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov dword [esp + 0x34], 0
lea ebx, [eax + 0x10]
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx - 0x10]
mov byte [esp + 0x68], 2
mov eax, dword [eax]
add eax, dword [esp + 0x18]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x45992c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45991b
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x45991b
call fcn.0040c3c0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x459912
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x38], ebx
jmp 0x45992c
push dword [edx - 0xc]
lea ecx, [esp + 0x3c]
push edx
call fcn.0040c1c0
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x34]
call fcn.0044f700
mov edi, eax
test edi, edi
je 0x4599c0
mov ecx, dword [esp + 0x14]
push 0x2710
call fcn.00456380
mov esi, eax
test esi, esi
jne 0x45998a
lea esi, [ecx + 0x40]
test esi, esi
jne 0x45998a
lea eax, [edi + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00450210
push dword [esp + 0x28]
lea eax, [esp + 0x30]
mov ecx, 0x64168c
push dword [esp + 0x28]
push eax
call fcn.00428d00
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 8]
jmp 0x4599c0
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
push eax
push edi
mov ecx, esi
call fcn.004507a0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x30c]
test ecx, ecx
je 0x4599c0
mov eax, dword [ecx]
push 0
push 1
push dword [esp + 0x20]
push edi
push dword [esi + 4]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x68], 1
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4599df
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x4597c0
mov ebx, dword [esp + 0x48]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x44]
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x18], edi
je 0x459b66
mov edx, dword [0x64168c]
lea eax, [esi + 8]
mov dword [esp + 0x1c], eax
mov ebx, dword [eax - 4]
mov ecx, edx
mov esi, dword [eax]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
cmp byte [eax + 0xd], 0
jne 0x459a77
lea esp, [esp]
cmp dword [eax + 0x10], ebx
jae 0x459a5a
mov eax, dword [eax + 8]
jmp 0x459a5e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x459a50
cmp ecx, edx
je 0x459a77
cmp ebx, dword [ecx + 0x10]
jb 0x459a77
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x20]
jmp 0x459a7f
mov dword [esp + 0x24], edx
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, edx
je 0x459a98
mov edi, dword [eax + 0x14]
test edi, edi
je 0x459a9a
cmp dword [edi + 0x78], 0
jne 0x459b49
jmp 0x459a9a
xor edi, edi
mov edx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x459abf
cmp esi, 0xffffffff
je 0x459abf
mov ecx, dword [edx + 0x30c]
test ecx, ecx
je 0x459abf
mov eax, dword [ecx]
push ebx
push 0
push esi
call dword [eax + 8]
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 0x44]
jne 0x459ac9
lea ecx, [edx + 0x40]
jmp 0x459b07
mov eax, dword [edx + 0x38]
xor ecx, ecx
sub eax, dword [edx + 0x34]
sar eax, 2
test eax, eax
je 0x459b11
mov esi, dword [edx + 0x38]
sub esi, dword [edx + 0x34]
mov edx, dword [edx + 0x34]
sar esi, 2
mov eax, dword [edx]
mov ebx, dword [esp + 0x2c]
cmp dword [eax + 4], ebx
mov ebx, dword [esp + 0x30]
je 0x459afd
inc ecx
add edx, 4
cmp ecx, esi
jb 0x459ae4
jmp 0x459b11
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x459b11
push ebx
call fcn.00450890
test edi, edi
je 0x459b43
lea eax, [edi + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00450210
push dword [esp + 0x40]
lea eax, [esp + 0x38]
mov ecx, 0x64168c
push dword [esp + 0x40]
push eax
call fcn.00428d00
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 8]
mov edx, dword [0x64168c]
mov eax, dword [esp + 0x1c]
add eax, 0xc
dec dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jne 0x459a34
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov byte [esp + 0x68], 0
or ecx, 0xffffffff
mov edx, dword [esp + 0x50]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459b89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x68], 0xffffffff
test esi, esi
je 0x459bcc
mov edi, dword [esp + 0x44]
cmp edi, ebx
je 0x459bc3
lea ecx, [ecx]
mov edx, dword [esi]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459bbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xc
cmp esi, ebx
jne 0x459ba0
push edi
call fcn.00551995
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4