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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506a80
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x54b2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x553cc8]
mov eax, dword [eax + 0x44]
cmp eax, 3
jne 0x46e53a
call fcn.0046ea20
call fcn.0046f270
mov ecx, dword [0x553cc8]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x46e560
mov ecx, dword [ecx + 0x2c]
push 0x4701c0
push 0x2c
push eax
push ecx
call fcn.004e3e20
add esp, 0x10
lea esi, [ebp - 0x50]
call fcn.00469b50
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x51517c
mov dword [ebp - 4], 1
call fcn.00459530
mov byte [ebp - 4], 2
mov esi, dword [0x553cc8]
mov eax, dword [esi + 0x30]
cmp eax, 4
jle 0x46e603
dec eax
mov dword [ebp - 0x14], eax
cmp eax, 3
jle 0x46e5f0
mov ebx, eax
mov edi, ebx
imul edi, edi, 0x2c
inc ebx
cmp ebx, eax
jb 0x46e5f9
cmp ebx, 1
jb 0x46e5f9
mov eax, dword [esi + 0x30]
cmp ebx, eax
ja 0x46e5f9
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2c]
add eax, edi
call fcn.00469bf0
cmp dword [ebp - 0x20], 0
jbe 0x46e5d7
mov eax, dword [esi + 0x2c]
lea ecx, [eax + edi + 0x2c]
lea edx, [eax + edi]
mov eax, dword [ebp - 0x20]
call fcn.0046d010
mov eax, dword [ebp - 0x14]
dec dword [esi + 0x30]
mov esi, dword [0x553cc8]
dec eax
dec ebx
sub edi, 0x2c
mov dword [ebp - 0x14], eax
cmp eax, 3
jg 0x46e5a0
mov dword [ebp - 0x20], 4
jmp 0x46e606
push 0x80070057
call fcn.00459fc0
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], eax
jle 0x46e9d1
mov dword [ebp - 0x1c], eax
jmp 0x46e626
mov esi, dword [0x553cc8]
mov edx, dword [ebp - 0x14]
cmp edx, dword [esi + 0x30]
jae 0x46e5f9
mov edi, dword [esi + 0x2c]
add edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x4c]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x50], eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x18], edi
cmp eax, esi
je 0x46e691
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e684
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e684
call fcn.0045cb40
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e679
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x4c], ecx
jmp 0x46e691
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00459440
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0x48]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46e6e6
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e6d9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e6d9
call fcn.0045cb40
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e6ce
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x48], ecx
jmp 0x46e6e6
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00459440
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x44]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46e73b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e72e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e72e
call fcn.0045cb40
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e723
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x44], ecx
jmp 0x46e73b
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00459440
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x40]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46e790
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e783
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e783
call fcn.0045cb40
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e778
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x40], ecx
jmp 0x46e790
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00459440
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp - 0x3c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46e7e4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e7d7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e7d7
call fcn.0045cb40
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e7cc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x18]
jmp 0x46e7e4
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00459440
mov ecx, dword [edi + 0x18]
mov esi, dword [ebp - 0x38]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46e838
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e82b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e82b
call fcn.0045cb40
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e820
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x18]
jmp 0x46e838
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x38]
push ecx
call fcn.00459440
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov esi, dword [ebp - 0x2c]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x34], edx
cmp eax, esi
je 0x46e898
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e88b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46e88b
call fcn.0045cb40
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e880
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x18]
jmp 0x46e898
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00459440
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x10]
mov dl, byte [edi + 0x28]
add eax, 0xfffffff0
add esi, 0xfffffff0
mov byte [ebp - 0x28], dl
cmp eax, esi
je 0x46e8f2
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46e8e2
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x46e8e2
call fcn.0045cb40
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x46e8da
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x46e8f2
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00459440
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + 0x70]
mov edx, dword [edx + 0x3c]
add ecx, 0x70
add eax, 0x3e8
push eax
call edx
mov esi, eax
test esi, esi
je 0x46e9bd
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
mov edx, dword [ebp - 0x10]
lea edi, [esi + 0x78]
test edx, edx
jne 0x46e92c
xor eax, eax
jmp 0x46e940
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e931
sub eax, ebx
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.00459440
cmp byte [esi + 0x24], 0
je 0x46e981
cmp byte [esi + 0x25], 0
je 0x46e981
cmp byte [esi + 0x26], 0
je 0x46e981
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46e981
mov eax, dword [esi + 4]
test eax, eax
je 0x46e981
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x46e9bd
cmp byte [esi + 0x25], 0
je 0x46e9bd
cmp byte [esi + 0x26], 0
je 0x46e9bd
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46e9bd
mov eax, dword [esi + 4]
test eax, eax
je 0x46e9bd
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], 0x2c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x20]
jl 0x46e620
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00469bf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4