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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66a6a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
call fcn.004f9d5a
test eax, eax
je 0x46cdad
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x46cdad
call fcn.004f9d5a
mov eax, dword [eax + 0x4c]
shr eax, 5
and al, 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b], al
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
call fcn.004f9d5a
mov edx, dword [eax + 0x68]
mov ecx, 0x800
mov dword [esp + 0x30], edx
cmp edx, ecx
jbe 0x46c6ea
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x24], eax
cmp eax, ecx
jbe 0x46c6f9
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x88]
push eax
call fcn.004dd3fe
mov dword [esp + 0xd8], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x12c]
push dword [ebp + 0x14]
mov dword [esp + 0x9c], eax
push dword [ebp + 0xc]
lea eax, [esp + 0x90]
push edi
call fcn.004dd571
test al, al
jne 0x46c750
or dword [esp + 0xd8], 0xffffffff
lea ecx, [esp + 0x88]
call fcn.004dd45c
mov al, bl
jmp 0x46cdaf
lea eax, [esp + 0x50]
push eax
call fcn.0047beb2
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0xdc], 1
call fcn.0047beb2
mov byte [esp + 0xd8], 2
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x20]
xor eax, eax
xor ecx, ecx
sub edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
je 0x46c7a5
dec edx
jne 0x46c7c1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
jmp 0x46c7b5
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], eax
xor edi, edi
inc edi
mov dword [esp + 0x10], edi
cmp eax, edi
jbe 0x46c7d6
add edi, edi
cmp edi, eax
jb 0x46c7cc
mov dword [esp + 0x10], edi
cmp edi, ecx
ja 0x46c7f6
cmp eax, 0x80
jb 0x46c877
mov edx, edi
mov ebx, edi
sub edx, eax
shr ebx, 4
cmp edx, ebx
jb 0x46c877
shr edi, 1
mov dword [esp + 0x10], edi
cmp edi, ecx
jbe 0x46c806
mov edi, ecx
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x1c]
jae 0x46c814
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
and dword [esp + 0x18], 0
cmp edi, eax
jae 0x46c84c
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x10]
call fcn.0046d445
add dword [esp + 0x18], edi
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [esp + 0x28]
jbe 0x46c840
shr edi, 1
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [esp + 0x28]
jb 0x46c81d
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
jbe 0x46c869
shl dword [esp + 0x10], 1
cmp dword [esp + 0x10], eax
jb 0x46c85f
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jae 0x46c877
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x10]
call fcn.0046d445
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 2
jl 0x46c778
cmp byte [esp + 0x3b], 0
jne 0x46cb6f
mov ecx, dword [esp + 0x78]
mov eax, ecx
sub eax, dword [esp + 0x74]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
test eax, 0xfffffffc
jle 0x46cb1c
push dword [esp + 0x18]
lea eax, [esp + 0x6c]
call fcn.0046d3d4
mov eax, dword [eax]
and dword [esp + 0x10], 0
and dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
mov ecx, eax
sub ecx, dword [esp + 0x5c]
test ecx, 0xfffffffc
jle 0x46ca8d
mov edi, dword [esp + 0x3c]
sub edi, ebx
mov dword [esp + 0x40], edi
jmp 0x46c902
mov edi, dword [esp + 0x40]
push dword [esp + 0x20]
lea eax, [esp + 0x54]
call fcn.0046d3d4
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
sub ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jle 0x46c931
mov dword [esp + 0x28], ecx
cmp edx, edi
jle 0x46c939
mov dword [esp + 0x2c], edi
push 0xe0
call fcn.0046ef9c
pop ecx
mov dword [esp + 0x4c], eax
mov byte [esp + 0xd8], 3
test eax, eax
je 0x46c95f
mov ecx, eax
call fcn.004b6dc1
mov edi, eax
jmp 0x46c961
xor edi, edi
mov byte [esp + 0xd8], 2
lea ebx, [edi + 8]
mov eax, dword [ebx]
push 0
mov ecx, ebx
mov dword [esp + 0x34], edi
call dword [eax + 0x84]
mov eax, dword [edi]
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [esp + 0x28]
push dword [esp + 0x34]
call dword [eax + 4]
test al, al
je 0x46caba
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x58]
test al, al
je 0x46caba
push dword [esp + 0x2c]
mov edx, dword [ebx]
push dword [esp + 0x2c]
xor ecx, ecx
push dword [esp + 0x1c]
xor eax, eax
push dword [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
call dword [edx + 0xd4]
test al, al
je 0x46caba
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
jle 0x46ca1e
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push edi
mov dword [esp + 0x48], 1
push dword [esp + 0x48]
lea eax, [ecx + eax - 1]
push dword [esp + 0x1c]
push eax
xor eax, eax
push eax
push ecx
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
call dword [edx + 0xd4]
cmp dword [esp + 0x1c], edi
jle 0x46ca5d
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
mov dword [esp + 0xac], 1
push dword [esp + 0xac]
lea eax, [edi + eax - 1]
push dword [esp + 0x2c]
xor ecx, ecx
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x98]
push edi
push ecx
push eax
mov ecx, ebx
call dword [edx + 0xd4]
lea eax, [esp + 0x30]
push eax
lea eax, [esi + 0x10]
call fcn.0046d2fb
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
inc dword [esp + 0x20]
mov ecx, eax
sub ecx, dword [esp + 0x5c]
sar ecx, 2
cmp dword [esp + 0x20], ecx
jl 0x46c8fe
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x1c]
inc dword [esp + 0x18]
mov edx, ecx
sub edx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
sar edx, 2
cmp dword [esp + 0x18], edx
jl 0x46c8bf
mov edx, dword [esp + 0x10]
jmp 0x46cb20
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0xc], 0x15
je 0x46caee
cmp dword [ebp + 0xc], 0x16
je 0x46caee
lea esi, [esp + 0x68]
call fcn.0047c239
lea esi, [esp + 0x50]
call fcn.0047c239
xor bl, bl
jmp 0x46c735
push dword [ebp + 0x14]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
push 0x1a
push dword [ebp + 8]
call dword [eax + 0x13c]
lea esi, [esp + 0x68]
mov bl, al
call fcn.0047c239
lea esi, [esp + 0x50]
call fcn.0047c239
jmp 0x46c735
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x5c]
sub ecx, dword [esp + 0x74]
sar eax, 2
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x3c]
sar ecx, 2
mov dword [esi + 0x34], eax
mov al, byte [ebp + 0x14]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x38], edx
lea edx, [esp + 0xb0]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x5c], al
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
push 0xffffffffffffffff
mov byte [esp + 0xdc], 4
push 0
jmp 0x46cd5f
mov eax, dword [esp + 0x3c]
xor ecx, ecx
inc ecx
cmp dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
jle 0x46cb90
cmp dword [esp + 0x34], ecx
jle 0x46cb9e
add ecx, ecx
cmp ecx, dword [esp + 0x34]
jl 0x46cb86
jmp 0x46cb9a
cmp eax, ecx
jle 0x46cb9e
add ecx, ecx
cmp ecx, eax
jl 0x46cb94
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x30]
jle 0x46cbac
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x24]
jle 0x46cbba
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
jle 0x46cd18
mov dword [esp + 0x20], ecx
neg dword [esp + 0x20]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jle 0x46ccf6
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
neg dword [esp + 0x30]
mov dword [esp + 0x40], eax
cmp ecx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
jle 0x46cc12
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jle 0x46cc1e
mov dword [esp + 0x48], eax
push 0xe0
call fcn.0046ef9c
pop ecx
mov dword [esp + 0x4c], eax
mov byte [esp + 0xd8], 5
cmp eax, edi
je 0x46cc44
mov ecx, eax
call fcn.004b6dc1
mov edi, eax
jmp 0x46cc46
xor edi, edi
mov byte [esp + 0xd8], 2
lea ebx, [edi + 8]
mov eax, dword [ebx]
push 0
mov ecx, ebx
mov dword [esp + 0x50], edi
call dword [eax + 0x84]
mov eax, dword [edi]
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x20]
call dword [eax + 4]
test al, al
je 0x46caba
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x58]
test al, al
je 0x46caba
push dword [esp + 0x48]
mov edx, dword [ebx]
push dword [esp + 0x48]
xor ecx, ecx
push dword [esp + 0x1c]
xor eax, eax
push dword [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
call dword [edx + 0xd4]
test al, al
je 0x46caba
lea eax, [esp + 0x4c]
push eax
lea eax, [esi + 0x10]
call fcn.0046d2fb
mov ecx, dword [esp + 0x10]
add dword [esp + 0x28], ecx
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
inc dword [esp + 0x24]
xor edi, edi
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
jl 0x46cc02
add dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
inc dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
jl 0x46cbe0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x3c], eax
mov al, byte [ebp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xb0]
mov byte [esi + 0x5c], al
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
push 0xffffffffffffffff
mov byte [esp + 0xdc], 6
push edi
push eax
lea ecx, [esi + 0x40]
call fcn.00404790
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd8], 2
call fcn.00404660
mov eax, esi
call fcn.004f9d00
lea esi, [esp + 0x68]
call fcn.0047c239
lea esi, [esp + 0x50]
call fcn.0047c239
or dword [esp + 0xd8], 0xffffffff
lea ecx, [esp + 0x88]
call fcn.004dd45c
mov al, 1
jmp 0x46cdaf
xor al, al
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10