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

Disassembly:
push 0xffffffffffffffff
push 0x5340fe
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5801d4]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0xdc]
xor edi, edi
cmp eax, edi
je 0x46ed86
cmp word [eax], di
je 0x46ed86
cmp dword [esp + 0xe0], edi
je 0x46ed86
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0xd8]
mov dword [ebp + 0x170], esi
mov dword [ebp + 0x174], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x90], 0x54bb4c
mov dword [esp + 0xcc], edi
cmp dword [ebp + 0x78], edi
jne 0x46e393
cmp dword [ebp + 0x84], edi
je 0x46e522
push edi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.0046aaf0
cmp eax, edi
jne 0x46e411
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00469150
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 0x2e0]
mov ecx, ebx
shl ecx, 5
mov eax, dword [ecx + edx + 0x10]
cmp eax, edi
jle 0x46e3fc
push 1
push eax
push ebx
mov ecx, ebp
call fcn.0046d920
inc ebx
mov dword [ebp + 0x170], ebx
mov dword [ebp + 0x174], edi
mov dword [esp + 0x20], 1
push edi
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.0046aaf0
jmp 0x46e475
mov eax, dword [ebp + 0x2e0]
mov edx, esi
shl edx, 5
mov ecx, dword [eax + edx + 0x10]
add eax, edx
cmp ecx, edi
mov dword [esp + 0x14], ecx
jle 0x46e475
mov ebx, dword [eax + 8]
mov eax, dword [eax]
lea edx, [eax - 1]
xor eax, eax
cmp edx, edi
jle 0x46e459
jmp 0x46e440
movzx ecx, word [ebx + eax*2]
cmp cx, 0x20
je 0x46e450
cmp cx, 9
jne 0x46e455
inc eax
cmp eax, edx
jl 0x46e440
mov ecx, dword [esp + 0x14]
cmp eax, dword [esp + 0xd8]
jl 0x46e475
push 1
push ecx
push esi
mov ecx, ebp
call fcn.0046d920
mov dword [esp + 0x20], 1
mov edx, dword [ebp + 0x2e0]
mov ecx, esi
shl ecx, 5
mov eax, dword [ecx + edx]
dec eax
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.0046aaf0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
sub esi, ebx
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x98]
call fcn.004614f0
xor ecx, ecx
cmp esi, edi
jle 0x46e522
mov edx, dword [esp + 0x94]
lea edi, [ebx + ebx*2]
add edi, edi
add edi, edi
jmp 0x46e4d4
mov ebx, dword [esp + 0x24]
add ebx, ecx
js 0x46e66f
cmp ebx, dword [ebp + 0x15c]
jge 0x46e66f
mov eax, dword [ebp + 0x158]
add eax, edi
test ecx, ecx
jl 0x46e66f
cmp ecx, dword [esp + 0x98]
jge 0x46e66f
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
inc ecx
add edi, 0xc
add edx, 0xc
cmp ecx, esi
jl 0x46e4d0
xor edi, edi
mov dword [esp + 0x2c], 0x54c350
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
cmp dword [esp + 0xe0], edi
mov byte [esp + 0xcc], 1
jle 0x46e693
nop
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
xor esi, esi
xor ebx, ebx
cmp ecx, esi
jle 0x46e58c
jmp 0x46e570
mov edx, 0xd
cmp dx, word [eax + ebx*2]
jne 0x46e587
mov edx, 0xa
cmp dx, word [eax + ebx*2 + 2]
je 0x46e58c
inc ebx
cmp ebx, ecx
jl 0x46e570
push ebx
push eax
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.004b0220
push esi
lea ecx, [esp + 0x44]
call fcn.004b01e0
mov edi, dword [esp + 0x34]
cmp edi, esi
jl 0x46e66f
mov eax, edi
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x34]
call fcn.0046b070
mov eax, dword [esp + 0xe0]
shl edi, 5
add edi, dword [esp + 0x30]
mov ecx, 8
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xdc]
sub eax, ebx
lea edx, [ecx + ebx*2]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], eax
test eax, eax
jle 0x46e693
add dword [esp + 0xdc], 4
sub eax, 2
xor esi, esi
cmp eax, esi
mov dword [esp + 0xe0], eax
jg 0x46e550
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call fcn.004b01e0
mov eax, dword [esp + 0x34]
cmp eax, esi
mov edi, eax
jge 0x46e674
call fcn.004e0962
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x34]
call fcn.0046b070
shl edi, 5
add edi, dword [esp + 0x30]
mov ecx, 8
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0xd4]
dec edi
xor ebx, ebx
cmp edi, ebx
lea eax, [edi + ecx]
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
jle 0x46e8d5
cmp dword [ebp + 0x84], ebx
je 0x46e6e8
mov eax, dword [ebp + 0x2e0]
mov edx, ecx
shl edx, 5
mov eax, dword [eax + edx + 0x10]
cmp eax, ebx
jle 0x46e6e8
push 1
push eax
push ecx
mov ecx, ebp
call fcn.0046d920
mov dword [ebp + 0x174], ebx
mov dword [esp + 0x20], 1
xor esi, esi
mov dword [esp + 0x40], 0x54c350
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], esi
cmp edi, ebx
mov byte [esp + 0xcc], 2
mov dword [esp + 0x14], ebx
jle 0x46e785
jmp 0x46e718
mov esi, dword [esp + 0x48]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.004b01e0
cmp esi, ebx
mov edi, esi
jl 0x46e66f
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x48]
call fcn.0046b070
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
shl edi, 5
inc eax
add edi, ebx
cmp eax, dword [esp + 0x28]
mov ecx, 8
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
jl 0x46e714
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0xd4]
push ecx
push ebx
lea edx, [esi + 1]
push edx
mov ecx, ebp
call fcn.0046a700
mov edx, dword [ebp + 0x2e0]
mov edi, dword [esp + 0xd8]
shl esi, 5
mov eax, dword [esi + edx]
mov ecx, dword [esi + edx + 8]
sub eax, edi
dec eax
lea ecx, [ecx + edi*2]
push eax
push ecx
mov ecx, dword [esp + 0x20]
shl ecx, 5
push 0
add ecx, edx
mov dword [esp + 0x20], eax
call fcn.004b0220
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x2e0]
push edx
push edi
add ecx, esi
call fcn.004b02a0
mov byte [esp + 0xcc], 1
test ebx, ebx
je 0x46e7f8
push ebx
call fcn.004d7727
add esp, 4
mov ecx, dword [esp + 0xd4]
xor ebx, ebx
cmp dword [esp + 0x34], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
jle 0x46e8e1
mov eax, dword [esp + 0x30]
shl ecx, 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
jl 0x46e66f
cmp ebx, dword [esp + 0x34]
jge 0x46e66f
mov esi, dword [esp + 0x1c]
mov ecx, 8
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
dec esi
mov edx, ebx
neg edx
sbb edx, edx
push esi
push ecx
mov ecx, dword [ebp + 0x2e0]
add ecx, dword [esp + 0x1c]
not edx
and edx, dword [esp + 0xe0]
push edx
call fcn.004b0220
push 0
lea ecx, [esp + 0xa8]
call fcn.004b0110
mov eax, 0x20
add dword [esp + 0x1c], eax
add dword [esp + 0x14], eax
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46e856
mov edi, dword [esp + 0xd8]
jmp 0x46e8e5
mov edi, dword [esp + 0xd8]
jmp 0x46e801
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xd4]
jne 0x46e8f4
add esi, edi
xor ebx, ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x14], esi
mov dword [ebp + 0x168], eax
mov dword [ebp + 0x16c], esi
jg 0x46e912
cmp dword [esp + 0x20], ebx
je 0x46e915
or eax, 0xffffffff
mov dword [ebp + 0x178], eax
cmp eax, 0xffffffff
je 0x46e933
mov ecx, dword [ebp + 0x2e0]
shl eax, 5
mov eax, dword [eax + ecx]
dec eax
mov dword [ebp + 0x17c], eax
mov edx, dword [ebp + 0xec]
imul edx, edx, 0x154
cmp dword [edx + 0x584d74], ebx
je 0x46e97a
push ebx
cmp dword [ebp + 0xac], ebx
je 0x46e966
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd8]
push eax
push ecx
mov ecx, ebp
call fcn.0046c240
jmp 0x46e97a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xd8]
push edx
push eax
mov ecx, ebp
call fcn.0046c390
cmp dword [ebp + 0x84], ebx
je 0x46e9c0
mov ecx, dword [esp + 0xd4]
push edi
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
mov ecx, ebp
call fcn.0046af70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x18]
jl 0x46e9a8
cmp eax, ebx
je 0x46e9c0
mov eax, dword [esp + 0x18]
push eax
push edi
push ecx
mov ecx, ebp
call fcn.0046c760
test eax, eax
je 0x46e9c0
mov dword [ebp + 0x174], ebx
mov eax, dword [esp + 0xe4]
cmp eax, ebx
jbe 0x46eb5a
lea esi, [ebp + 0x2cc]
cmp eax, 2
je 0x46e9e0
lea esi, [ebp + 0x2b8]
mov eax, dword [esi + 8]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x46ea48
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xd4]
lea esi, [eax + eax*2]
mov eax, dword [edx + 4]
push edi
shl esi, 4
push ecx
lea ecx, [esi + eax - 0x30]
call fcn.004afe50
test eax, eax
je 0x46ea44
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov ecx, ebp
call eax
test eax, eax
je 0x46ea44
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ecx + 4]
push eax
push edi
lea ecx, [esi + edx - 0x30]
call fcn.004afe80
jmp 0x46eb01
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xd4]
push eax
push ecx
push edx
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], 1
mov dword [esp + 0x70], ebx
mov dword [esp + 0x94], ebx
call fcn.004afe80
mov eax, dword [ebp]
mov edx, dword [eax + 0x58]
mov ecx, ebp
call edx
test eax, eax
jne 0x46eace
push 1
mov ecx, ebp
call fcn.0046a7f0
mov dword [esp + 0x88], 1
mov esi, dword [esi + 8]
cmp esi, ebx
jge 0x46eada
call fcn.004e0962
mov ebx, dword [esp + 0x20]
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
mov ecx, ebx
call fcn.00461fa0
lea edi, [esi + esi*2]
shl edi, 4
add edi, dword [ebx + 4]
mov ecx, 0xc
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [esp + 0xe4], 1
jne 0x46eb5a
cmp dword [ebp + 0x2d4], ebx
je 0x46eb5a
mov esi, dword [ebp + 0x2d4]
cmp esi, ebx
je 0x46eb35
xor edi, edi
nop
mov ecx, dword [ebp + 0x2d0]
add ecx, edi
dec esi
add edi, 0x30
call fcn.004afe30
cmp esi, ebx
jne 0x46eb20
mov eax, dword [ebp + 0x2d0]
cmp eax, ebx
je 0x46eb4e
push eax
call fcn.004d7727
add esp, 4
mov dword [ebp + 0x2d0], ebx
mov dword [ebp + 0x2d8], ebx
mov dword [ebp + 0x2d4], ebx
cmp dword [ebp + 0x78], ebx
jne 0x46eb6d
cmp dword [ebp + 0x84], ebx
je 0x46ed25
xor ebx, ebx
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0xd4]
mov edi, dword [esp + 0x24]
inc esi
mov eax, esi
sub eax, dword [esp + 0x98]
mov dword [esp + 0x1c], esi
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
jle 0x46ebae
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
lea ecx, [ebp + 0x154]
call fcn.00468e30
jmp 0x46ec22
jge 0x46ec22
neg eax
mov edx, eax
mov dword [esp + 0x14], edx
lea ecx, [edx + edi]
test edi, edi
jl 0x46e66f
test edx, edx
jl 0x46e66f
mov eax, dword [ebp + 0x15c]
cmp ecx, eax
jg 0x46e66f
cmp ecx, edi
jl 0x46e66f
cmp ecx, edx
jl 0x46e66f
sub eax, ecx
je 0x46ec1c
mov edx, dword [ebp + 0x158]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
lea ecx, [ecx + ecx*2]
push eax
lea ecx, [edx + ecx*4]
push ecx
lea ebx, [edi + edi*2]
lea edx, [edx + ebx*4]
push eax
push edx
call fcn.00517a9d
push eax
call fcn.00401d10
mov edx, dword [esp + 0x28]
add esp, 0x14
sub dword [ebp + 0x15c], edx
xor ecx, ecx
test esi, esi
jle 0x46eca1
mov eax, dword [esp + 0xd4]
lea esi, [edi + edi*2]
add esi, esi
mov ebx, eax
add esi, esi
shl ebx, 5
sub eax, edi
mov edx, edi
mov dword [esp + 0x14], eax
jmp 0x46ec54
mov eax, dword [esp + 0x14]
lea edi, [edx + eax]
mov eax, dword [ebp + 0x2e0]
mov eax, dword [ebx + eax]
dec eax
mov dword [esp + 0x48], eax
test edx, edx
jl 0x46e66f
cmp edx, dword [ebp + 0x15c]
jge 0x46e66f
mov eax, dword [ebp + 0x158]
add eax, esi
mov dword [eax], edi
xor edi, edi
mov dword [eax + 4], edi
mov edi, dword [esp + 0x48]
inc ecx
add ebx, 0x20
add esi, 0xc
inc edx
cmp ecx, dword [esp + 0x1c]
mov dword [eax + 8], edi
jl 0x46ec50
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
jle 0x46ed25
mov eax, dword [ebp + 0x15c]
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x14], eax
jge 0x46ed11
lea edx, [ecx + ecx*2]
add edx, edx
add edx, edx
nop
test edx, edx
jl 0x46e66f
cmp ecx, dword [ebp + 0x15c]
jge 0x46e66f
mov eax, dword [ebp + 0x158]
mov esi, dword [eax + edx]
add esi, dword [esp + 0x28]
mov edi, dword [eax + edx + 4]
mov ebx, dword [eax + edx + 8]
add eax, edx
cmp ecx, dword [ebp + 0x15c]
jge 0x46e66f
mov eax, dword [ebp + 0x158]
add eax, edx
mov dword [eax], esi
inc ecx
add edx, 0xc
cmp ecx, dword [esp + 0x14]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
jl 0x46ecc0
mov dword [ebp + 0x178], 0xffffffff
mov dword [ebp + 0x17c], 0
cmp dword [ebp + 0x78], 0
je 0x46ed47
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xd4]
push ecx
push edx
lea eax, [esp + 0x98]
push eax
mov ecx, ebp
call fcn.0046d2a0
mov eax, dword [esp + 0x30]
mov byte [esp + 0xcc], 0
test eax, eax
je 0x46ed60
push eax
call fcn.004d7727
add esp, 4
mov eax, dword [esp + 0x94]
mov dword [esp + 0xcc], 0xffffffff
test eax, eax
je 0x46ed7f
push eax
call fcn.004d7727
add esp, 4
mov eax, 1
jmp 0x46ed88
xor eax, eax
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0x14