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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecec0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x65bf90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x46e8d2
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x78]
add ecx, ecx
add ecx, ecx
mov edi, dword [ecx + eax]
mov eax, dword [esi + 8]
add eax, ecx
mov cl, byte [esi + 0x60]
test cl, cl
je 0x46e702
mov dword [ebp - 0x1c], 1
jmp 0x46e707
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
test cl, cl
je 0x46e712
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x46e719
mov dword [ebp - 0x14], 1
lea ebx, [edi + 0x70]
call fcn.0046ee20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46e7cc
mov dword [ebp - 0x18], eax
nop
push 4
call fcn.004ba280
add esp, 4
test eax, eax
je 0x46e749
mov dword [eax], 0
mov dword [ebp - 0x1c], eax
jmp 0x46e750
mov dword [ebp - 0x1c], 0
mov eax, dword [edi + 0x78]
cmp dword [edi + 0x74], eax
jne 0x46e7af
mov ecx, eax
shr ecx, 2
lea ebx, [ecx + eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba2ba
mov ecx, eax
mov eax, dword [edi + 0x74]
add esp, 4
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x46e79a
mov edx, dword [edi + 0x70]
add eax, eax
add eax, eax
push eax
push edx
push ecx
call fcn.005c27a0
add esp, 0xc
mov eax, dword [edi + 0x70]
push eax
call fcn.004ba2af
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [edi + 0x70], eax
mov dword [edi + 0x78], ebx
mov ecx, dword [edi + 0x74]
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x70]
mov dword [edx + ecx*4], eax
mov eax, 1
add dword [edi + 0x74], eax
sub dword [ebp - 0x18], eax
jne 0x46e730
mov ebx, dword [edi + 0x80]
test ebx, ebx
je 0x46e7fd
mov ecx, dword [edi + 0x7c]
mov esi, dword [ecx + ebx*4 - 4]
dec ebx
test esi, esi
je 0x46e7f9
mov eax, dword [esi]
test eax, eax
je 0x46e7f0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call fcn.004ba2af
add esp, 4
test ebx, ebx
jne 0x46e7d6
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x80], 0
test eax, eax
je 0x46e8bd
mov dword [ebp - 0x18], eax
push 4
call fcn.004ba280
add esp, 4
test eax, eax
je 0x46e82e
mov dword [eax], 0
mov dword [ebp - 0x1c], eax
jmp 0x46e835
mov dword [ebp - 0x1c], 0
mov eax, dword [edi + 0x84]
cmp dword [edi + 0x80], eax
jne 0x46e89a
mov ecx, eax
shr ecx, 2
lea esi, [ecx + eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba2ba
mov ebx, eax
mov eax, dword [edi + 0x80]
add esp, 4
test eax, eax
je 0x46e885
mov ecx, dword [edi + 0x7c]
add eax, eax
add eax, eax
push eax
push ecx
push ebx
call fcn.005c27a0
add esp, 0xc
mov eax, dword [edi + 0x7c]
push eax
call fcn.004ba2af
add esp, 4
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x84], esi
mov edx, dword [edi + 0x80]
mov eax, dword [edi + 0x7c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edx*4], ecx
mov eax, 1
add dword [edi + 0x80], eax
sub dword [ebp - 0x18], eax
jne 0x46e815
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x10], eax
mov esi, edx
cmp eax, dword [edx + 0x7c]
jb 0x46e6e0
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x10], 0
jbe 0x46ea25
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx*8]
mov eax, dword [edx]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [ecx + eax*4]
mov ecx, dword [esi + 0x30]
sub eax, dword [ecx + ebx*4]
mov ecx, eax
mov al, byte [esi + 0x60]
test al, al
je 0x46e908
mov edi, dword [edx + 4]
jmp 0x46e90a
mov edi, ebx
test al, al
je 0x46e913
mov dword [ebp - 0x1c], ebx
jmp 0x46e919
mov edx, dword [edx + 4]
mov dword [ebp - 0x1c], edx
xor edx, edx
test al, al
setne dl
movzx ebx, al
mov eax, dword [esi + 0x78]
dec edx
and edx, ecx
neg ebx
sbb ebx, ebx
and ebx, ecx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x70]
mov ecx, dword [ecx + 0x7c]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 0x6c]
mov esi, dword [ebp - 0x10]
mov esi, dword [eax + esi*4]
push ecx
push edx
call fcn.0046f080
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ecx + 0x78]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x18]
cmp ecx, esi
je 0x46e97a
mov eax, ecx
jmp 0x46e97d
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x62b080
push eax
mov eax, dword [ecx]
call eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x18]
cmp ecx, esi
je 0x46e9a4
mov eax, ecx
jmp 0x46e9a7
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x62b080
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp eax, esi
je 0x46e9ed
cmp ecx, esi
je 0x46e9ed
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0x80000
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 0x80000
push ebx
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, esi
je 0x46ea00
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x46ea13
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov esi, edi
cmp eax, dword [edi + 0x18]
jb 0x46e8e3
cmp byte [esi + 0x60], 0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x78]
mov eax, dword [edx + ecx*4]
je 0x46ea3c
mov eax, dword [eax + 0x70]
mov ecx, dword [ebp + 0xc]
jmp 0x46ea42
mov eax, dword [eax + 0x7c]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
mov ebx, dword [eax]
test edi, edi
je 0x46ea52
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebx]
test eax, eax
je 0x46ea60
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [ebx], edi
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], eax
jbe 0x46eae2
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub edi, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
jmp 0x46ea83
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
mov ebx, dword [esi + 0x30]
sub eax, dword [ebx + ecx*4]
cmp byte [esi + 0x60], 0
mov ebx, dword [esi + 0x78]
mov ecx, dword [ebx + ecx*4]
je 0x46eaa9
mov ecx, dword [ecx + 0x7c]
mov edi, dword [edi + edx]
jmp 0x46eaae
mov ecx, dword [ecx + 0x70]
mov edi, dword [edx]
mov ebx, dword [ecx + eax*4]
test edi, edi
je 0x46eabd
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebx]
test eax, eax
je 0x46eacb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
inc eax
add edx, 4
mov dword [ebx], edi
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edx
cmp eax, dword [esi + 0x24]
jb 0x46ea80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc