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

Disassembly:
push 0xffffffffffffffff
push 0x46c0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
xor edi, edi
mov dword [eax], edi
mov dword [ecx], edi
push 0x47a0c0
mov ecx, esi
mov dword [esp + 0x90], edi
call 0x4c4aef
mov edx, dword [esp + 0x94]
push 0x47a144
push edx
mov dword [esi + 4], edi
call fcn.004b3432
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x46f6e1
push ebp
push 1
lea eax, [esp + 0x19]
push 1
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x46ef51
push 0x47a134
jmp 0x46f6f3
push ebp
push 1
lea ecx, [esp + 0x1a]
push 1
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x46ef7a
push 0x47a134
mov ecx, esi
call 0x4c4aef
cmp byte [esp + 0x11], 0x42
jne 0x46f6ee
cmp byte [esp + 0x12], 0x4d
jne 0x46f6ee
push ebp
push 1
mov edi, 4
lea edx, [esp + 0x5c]
push edi
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46efbd
push 0x47a128
jmp 0x46f6f3
push ebp
push 1
mov ebx, 2
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, ebx
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46eff1
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea ecx, [esp + 0x22]
push ebx
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, ebx
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f020
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f04f
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea eax, [esp + 0x60]
push edi
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f07e
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea ecx, [esp + 0x78]
push edi
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f0ad
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea edx, [esp + 0x7c]
push edi
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f0dc
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, ebx
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f10e
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea ecx, [esp + 0x86]
push ebx
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, ebx
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f140
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea edx, [esp + 0x54]
push edi
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f16f
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea eax, [esp + 0x64]
push edi
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f19e
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea ecx, [esp + 0x68]
push edi
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f1cd
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f1fc
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea eax, [esp + 0x34]
push edi
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f22b
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
push ebp
push 1
lea ecx, [esp + 0x70]
push edi
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add edx, edi
add esp, 0x10
cmp eax, 1
mov dword [esi + 4], edx
je 0x46f25a
push 0x47a128
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x46f273
push 0x47a114
mov ecx, esi
call 0x4c4aef
jmp 0x46f6d8
mov edx, dword [esp + 0x2c]
test edx, edx
mov eax, dword [esp + 0x7e]
jne 0x46f28c
mov edx, 1
mov cl, al
shl edx, cl
mov dword [esp + 0x2c], edx
xor ebx, ebx
and eax, 0xffff
dec eax
mov dword [esp + 0x24], ebx
je 0x46f2a7
sub eax, 3
je 0x46f2a7
sub eax, edi
jne 0x46f39f
shl edx, 2
push edx
call 0x4c5837
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x46f2e2
push ebp
call fcn.004b326d
add esp, 4
push 0x47a108
mov ecx, esi
call 0x4c4aef
mov dword [esp + 0x8c], 0xffffffff
jmp 0x46f70a
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x38], 0
jle 0x46f39f
lea edi, [ebx + 1]
push ebp
push 1
lea eax, [esp + 0x1d]
push 1
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
cmp eax, 1
mov dword [esi + 4], edx
jne 0x46f3c5
push ebp
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
cmp eax, 1
mov dword [esi + 4], edx
jne 0x46f3c5
push ebp
push eax
push eax
lea edx, [esp + 0x1f]
push edx
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
cmp eax, 1
mov dword [esi + 4], edx
jne 0x46f3c5
push ebp
push eax
push eax
lea eax, [esp + 0x22]
push eax
call fcn.004b32ea
mov edx, dword [esi + 4]
add esp, 0x10
inc edx
cmp eax, 1
mov dword [esi + 4], edx
jne 0x46f3c5
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x14]
mov al, byte [esp + 0x15]
mov byte [edi + 1], cl
mov byte [edi], dl
mov byte [edi - 1], al
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x46f2f9
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x46f3d7
push ebp
call fcn.004b326d
add esp, 4
push 0x47a0f8
mov ecx, esi
call 0x4c4aef
push ebx
jmp 0x46f65a
push 0x47a128
mov ecx, esi
call 0x4c4aef
push ebx
jmp 0x46f65a
jge 0x46f3fc
push ebp
push 1
lea ecx, [esp + 0x1e]
push 1
push ecx
call fcn.004b32ea
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x30]
add esp, 0x10
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 4], edx
jl 0x46f3d9
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x74]
mov dword [edx], eax
mov edx, dword [esp + 0x9c]
mov dword [edx], ecx
imul ecx, eax
lea edx, [eax + eax*2]
mov dword [esp + 0x30], eax
lea eax, [ecx + ecx*2]
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
call 0x4c5837
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
jne 0x46f47e
push 0x47a0e4
mov ecx, esi
call 0x4c4aef
test ebx, ebx
je 0x46f457
push ebx
call 0x4c5860
add esp, 4
push ebp
call fcn.004b326d
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x8c], 0xffffffff
call 0x4c49b2
mov eax, edi
jmp 0x46f718
mov ecx, dword [esp + 0x74]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x44], eax
jle 0x46f44a
inc edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x7e]
cmp cx, 0x18
jne 0x46f53c
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x46f4ee
xor edi, edi
mov ebx, eax
push ebp
push 3
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004b32ea
add esp, 0x10
cmp eax, 3
jne 0x46f4e8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
lea eax, [ecx + edx]
mov cl, byte [esp + 0x1e]
mov dl, byte [esp + 0x1d]
mov byte [eax + edi], cl
mov cl, byte [esp + 0x1c]
mov byte [eax + edi + 1], dl
mov byte [eax + edi + 2], cl
add edi, 3
dec ebx
jne 0x46f4af
mov edx, dword [esp + 0x48]
mov edi, dword [esi + 4]
add edi, edx
mov edx, dword [esp + 0x20]
mov eax, edi
sub eax, edx
test al, 3
mov dword [esi + 4], edi
je 0x46f60f
push ebp
push 1
lea ecx, [esp + 0x1e]
push 1
push ecx
call fcn.004b32ea
add esp, 0x10
cmp eax, 1
jne 0x46f649
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x20]
inc edx
mov dword [esi + 4], edx
sub edx, ecx
test dl, 3
jne 0x46f50a
jmp 0x46f60f
mov eax, 1
shl eax, cl
xor ebx, ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], ebx
dec eax
mov dword [esp + 0x50], eax
cmp dword [esp + 0x30], ebx
jle 0x46f5d5
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
test ebx, ebx
jg 0x46f58f
push ebp
push 1
lea eax, [esp + 0x44]
push 1
push eax
mov ebx, 8
call fcn.004b32ea
add esp, 0x10
cmp eax, 1
jne 0x46f678
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x7e]
and eax, 0xffff
sub ebx, eax
mov eax, dword [esp + 0x3c]
and eax, 0xff
mov cl, bl
shr eax, cl
mov ecx, dword [esp + 0x50]
add edi, 3
and eax, ecx
mov cl, byte [edx + eax*4]
mov byte [edi - 2], cl
mov cl, byte [edx + eax*4 + 1]
mov byte [edi - 3], cl
mov al, byte [edx + eax*4 + 2]
mov ecx, dword [esp + 0x30]
mov byte [edi - 4], al
mov eax, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x46f560
mov ecx, dword [esi + 4]
sub ecx, dword [esp + 0x20]
test cl, 3
je 0x46f60f
push ebp
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.004b32ea
add esp, 0x10
cmp eax, 1
jne 0x46f6ae
mov edi, dword [esi + 4]
mov edx, dword [esp + 0x20]
inc edi
mov eax, edi
sub eax, edx
test al, 3
mov dword [esi + 4], edi
jne 0x46f5e1
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
add edi, ecx
add edx, ecx
mov ecx, dword [esp + 0x74]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
jl 0x46f495
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
jmp 0x46f44a
push 0x47a0d8
mov ecx, esi
call 0x4c4aef
mov ecx, dword [esp + 0x28]
push ecx
call 0x4c5860
push ebp
call fcn.004b326d
add esp, 8
mov dword [esp + 0x8c], 0xffffffff
jmp 0x46f70a
push 0x47a0d8
mov ecx, esi
call 0x4c4aef
mov edx, dword [esp + 0x28]
push edx
call 0x4c5860
mov eax, dword [esp + 0x28]
push eax
call 0x4c5860
push ebp
call fcn.004b326d
add esp, 0xc
mov dword [esp + 0x8c], 0xffffffff
jmp 0x46f70a
push 0x47a0d8
mov ecx, esi
call 0x4c4aef
mov ecx, dword [esp + 0x28]
push ecx
call 0x4c5860
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x46f6d8
push eax
call 0x4c5860
add esp, 4
push ebp
call fcn.004b326d
add esp, 4
mov dword [esp + 0x8c], 0xffffffff
jmp 0x46f70a
push 0x47a0c4
mov ecx, esi
call 0x4c4aef
push ebp
call fcn.004b326d
add esp, 4
mov dword [esp + 0x8c], ebx
lea ecx, [esp + 0x94]
call 0x4c49b2
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 0xc